Map<V, Vertex<V>> parentsOfById(V id) { final vertex = vertices[id]; if (vertex == null) return {}; return parentsOf(vertex); }