Graphs

To begin, what's a graph? A graph is a pair of countable sets $ (V,E)$ , where

A graph is drawn by simply connecting points representing vertices together by a line segment if they belong to the same edge.

A digraph, or directed graph, is a pair of countable sets $ (V,E)$ , where

A digraph is drawn by simply connecting points representing vertices together by an arrow if they belong to the same edge $ (v_1,v_2)$ , the arrow originating at $ v_1$ and arrowhead pointing to $ v_2$ .

If $ e=\{v_1,v_2\}$ belongs to $ E$ then we say that $ e$ is an ``edge from $ v_1$ to $ v_2$ '' (or from $ v_2$ to $ v_1$ ). If $ v$ and $ w$ are vertices, a path from $ v$ to $ w$ is a finite sequence of edges beginning at $ v$ and ending at $ w$ :

$\displaystyle e_0=\{v,v_1\}, e_1=\{v_1,v_2\}, ..., e_n=\{v_n,w\}.
$

If there is a path from $ v$ to $ w$ then we say $ v$ is connected to $ w$ . We say that a graph $ (V,E)$ is connected if each pair of vertices is connected. The number of edges eminating from a vertex $ v$ is called the degree (or valence) of $ v$ , denoted $ {\rm degree}(v)$ .

Example 5.16.1   : If

$\displaystyle V = \{a,b,c\},    E=\{\{a,b\},\{a,c\},\{b,c\}\},
$

then we may visualize $ (V,E)$ as


\begin{picture}(200,200)(-100,0)
\par
\put(0,100){\line(1,1){50}}
\put(-10,100)...
...ne(0,-1){100}}
\par
\put(50,50){\line(-1,1){50}}
\put(50,35){$b$}
\end{picture}

Each vertex has valence 2.

Definition 5.16.2   : If $ v$ and $ w$ are vertices connected to each other in a graph $ (V,E)$ then we define the distance from $ v$ to $ w$ , denoted $ d(v,w)$ , by

$\displaystyle d(v,w) = \min_{v,w\in V  {\rm connected}}
\char93  \{ {\rm edges in a path from }v {\rm to }w\}
$

By convention, if $ v$ and $ w$ are not connected then we set $ d(v,w) =\infty$ . The diameter of a graph is the largest possible distance:

$\displaystyle {\rm diam}((V,E)) = \max_{v,w\in V} d(v,w).
$

In the above example, the diameter is 1.



david joyner 2008-04-20