graph :: Digraph :: vertices
var g = new HashDigraph[Int] g.add_vertices([0,2,4,5]) assert g.vertices.length == 4
# Returns an array containing the vertices of this graph. # # ~~~ # var g = new HashDigraph[Int] # g.add_vertices([0,2,4,5]) # assert g.vertices.length == 4 # ~~~ fun vertices: Array[V] do return [for u in vertices_iterator do u]