Skip to main content

is_empty

Function is_empty 

Source
pub fn is_empty(graph: &Graph) -> bool
Expand description

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.