Discrete Mathematics University of Kentucky CS 275 Spring ... - MGNet
Discrete Mathematics University of Kentucky CS 275 Spring ... - MGNet
Discrete Mathematics University of Kentucky CS 275 Spring ... - MGNet
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Definition: Two vertices u and v in an undirected graph G are adjacent (or<br />
neighbors) in G if u and v are endpoints <strong>of</strong> an edge e in G. Edge e is incident to<br />
{u,v} and e connects u and v.<br />
Definition: The degree <strong>of</strong> a vertex v, denoted deg(v), in an undirected graph is<br />
the number <strong>of</strong> edges incident with it except that loops contribute twice to the<br />
degree <strong>of</strong> that vertex. If deg(v) = 0, then it is isolated. If deg(v) = 1, then it is a<br />
pendant.<br />
Handshaking Theorem: If G = (V,E) is an undirected graph with e edges, then<br />
#<br />
&<br />
e= % deg(v) ( /2.<br />
$<br />
" v!V<br />
'<br />
Pro<strong>of</strong>: Each edge contributes 2 to the sum since it is incident to 2 vertices.<br />
Example: Let G = (V,E). Suppose |V| = 100,000 and deg(v) = 4 for all v,V.<br />
Then there are (4$100,000)/2 = 200,000 edges.<br />
171<br />
Theorem: An undirected graph has an even number <strong>of</strong> vertices and an odd<br />
degree.<br />
Definition: Let (u,v),E in a directed graph G(V,E). Then u and v are the initial<br />
and terminal vertices <strong>of</strong> (u,v), respectively. The initial and terminal vertices <strong>of</strong> a<br />
loop (u,u) are both u.<br />
Definition: The in-degree <strong>of</strong> a vertex, denoted deg 4 (v), is the number <strong>of</strong> edges<br />
with v as their terminal vertex. The out-degree <strong>of</strong> a vertex, denoted deg + (v), is<br />
the number <strong>of</strong> edges with v as their initial vertex.<br />
Theorem: For a directed graph G(V,E), # deg ! (v) = deg<br />
v"V # + (v) = E .<br />
v"V<br />
172