Cache the key and vertex in order to get vertex by id. 对节点的 id 进行缓存,为了方便通过 id 获取到接点
Map<ID, Vertex<ID>> keyCache = {};