title: Parity graph
text: # Parity graph
  
  In graph theory, a parity graph is a graph in which every two induced paths between the same two vertices have the same parity: either both paths have odd length, or both have even length. This class of graphs was named and first studied by Burlet & Uhry (1984).
  
  ## Related classes of graphs
  
  Parity graphs include the distance-hereditary graphs, in which every two induced paths between the same two vertices have the same length. They also include the bipartite graphs, which may be characterized analogously as the graphs in which every two paths (not necessarily induced paths) between the same two vertices have the same parity, and the line perfect graphs, a generalization of the bipartite graphs. Every parity graph is a Meyniel graph, a graph in which every odd cycle of length five or more has two chords. For, in a parity graph, any long odd cycle can be partitioned into two paths of different parities, neither of which is a single edge, and at least one chord is needed to prevent these from both being induced paths. Then, partitioning the cycle into two paths between the endpoints of this first chord, a second chord is needed to prevent the two paths of this second partition from being induced. Because Meyniel graphs are perfect graphs, parity graphs are also perfect. They are exactly the graphs whose Cartesian product with a single edge remains perfect.
  
  ## Algorithms
  
  A graph is a parity graph if and only if every component of its split decomposition is either a complete graph or a bipartite graph. Based on this characterization, it is possible to test whether a given graph is a parity graph in linear time. The same characterization also leads to generalizations of some graph optimization algorithms from bipartite graphs to parity graphs. For instance, using the split decomposition, it is possible to find the weighted maximum independent set of a parity graph in polynomial time.
  
  