pub fn is_empty(graph: &Graph) -> bool
Return whether the graph has no nodes. Matches networkx.is_empty(G) — note: NetworkX considers a graph “empty” if it has no edges, but we follow the function signature which checks edges.
networkx.is_empty(G)