pub fn diff(before: &Graph, after: &Graph) -> GraphDiffExpand description
Returns the edges added and removed between before and after. Both are graphs over the same
nodes.
Added edges come with their edge indices in after, removed edges with theirs in before. With
these edge indices, the caller can look up data on the edges of either graph in arrays indexed by
edge index. Both lists are in edge index order. An empty diff means that the graphs are equal.
Time: O(node_count + edge_count), with the edges of both graphs. Memory: 12 bytes per added or removed edge for the result; while it runs, up to 18 bytes more per such edge.
ยงPanics
With an invalid argument message if the node counts differ.