Skip to main content

graphs_equal

Function graphs_equal 

Source
pub fn graphs_equal<N, E, Ty>(
    g1: &Graph<N, E, Ty>,
    g2: &Graph<N, E, Ty>,
) -> bool
where N: PartialEq, E: PartialEq, Ty: EdgeType,
Expand description

Compare two graphs for structural equality.

Returns true if both graphs have the same nodes and edges with the same weights.