Graphs with an even number of edges #
SimpleGraph.EvenEdges G says that a finite graph G has an even number of edges, counted with
Set.ncard. Toggling one potential edge, that is, taking the symmetric difference with
SimpleGraph.edge u v for distinct u and v, flips this parity.
Main definitions #
SimpleGraph.EvenEdges: a finite graph with an even number of edges.
Main results #
SimpleGraph.evenEdges_symmDiff_edge_iff: toggling one potential edge flips the parity of the number of edges.
A graph on finitely many vertices has an even number of edges. The finite vertex type ensures
that Set.ncard counts the edges rather than returning 0 on an infinite edge set.