graph :: Digraph :: is_empty
An empty graph is a graph without vertex and arc.
assert (new HashDigraph[Int]).is_empty
# Returns true if and only if this graph is empty. # # An empty graph is a graph without vertex and arc. # # ~~~ # assert (new HashDigraph[Int]).is_empty # ~~~ fun is_empty: Bool do return num_vertices == 0 and num_arcs == 0