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