checkVertexCount<V, E> static method
Asserts that graph
has at least at least count
vertices.
Implementation
static void checkVertexCount<V, E>(Graph<V, E> graph, int count,
[String? name]) {
if (graph.vertices.length < count) {
throw GraphError(graph, name, 'Graph must have at least $count vertices');
}
}