<?xml version="1.0" encoding="UTF-8"?>

<record version="6" id="1765">
 <title>bipartite graph</title>
 <name>BipartiteGraph</name>
 <created>2002-02-03 15:30:52</created>
 <modified>2004-04-30 17:02:32</modified>
 <type>Definition</type>
 <creator id="2727" name="mathcam"/>
 <author id="2727" name="mathcam"/>
 <author id="22" name="vampyr"/>
 <classification>
	<category scheme="msc" code="05C15"/>
 </classification>
 <synonyms>
	<synonym concept="bipartite graph" alias="bipartite"/>
 </synonyms>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{color}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
\usepackage{xypic} 

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>A \emph{bipartite graph} is a graph with a chromatic number of $2$.

The following graph, for example, is bipartite:

$$\xymatrix{
{\color{red}A} \ar@{-}[rrr] \ar@{-}[rd] \ar@{-}[ddd] &amp; &amp; &amp; {\color{blue}B} \\
&amp; {\color{blue}E} &amp; {\color{red}F} \ar@{-}[ur] \ar@{-}[l] \ar@{-}[d] &amp; \\
&amp; {\color{red}H} \ar@{-}[u] \ar@{-}[r] \ar@{-}[dl] &amp; {\color{blue}G} &amp; \\
{\color{blue}D} &amp; &amp; &amp; {\color{red}C} \ar@{-}[uuu] \ar@{-}[lll] \ar@{-}[ul] }$$

One way to think of a bipartite graph is by partitioning the vertices into two disjoint sets where vertices in one set are adjacent only to vertices in the other set.  In the above graph, this may be more obvious with a different \PMlinkescapetext{representation}:

$$\xymatrix{
{\color{red}A} \ar@{-}[r] \ar@{-}[rd] \ar@{-}[rdd] &amp; {\color{blue}E} \\
{\color{red}F} \ar@{-}[ru] \ar@{-}[r] \ar@{-}[rdd] &amp; {\color{blue}B} \\
{\color{red}H} \ar@{-}[ruu] \ar@{-}[r] \ar@{-}[rd] &amp; {\color{blue}D} \\
{\color{red}C} \ar@{-}[ruu] \ar@{-}[ru] \ar@{-}[r] &amp; {\color{blue}G}}$$

The two subsets are the two columns of vertices, all of which have the same colour.

A graph is bipartite if and only if all its cycles have even length.  This is easy to see intuitively: any path of odd length on a bipartite must end on a vertex of the opposite colour from the beginning vertex and hence cannot be a cycle.</content>
</record>
