Module 11 Vocab Flashcards
Undirected Graph (notation)
11.1
G = (V, E)
V = vertices/nodes and E = edges
Undirected Graph (words)
11.1
A pair of finite sets
first set represents vertices/nodes
second set represents edges
Vertices/Nodes
11.1
V: finite, non-empty set of vertices/nodes
.
Edges (notation)
11.1
E ⊆ 2^v
Edges (definition)
11.1
set of nodes of cardinality 2
Edges (words)
11.1
finite (possibly empty) set of edges consisting only of subsets of cardinality 2
Edges and Incident
11.1
Each edge is incident to exactly two vertices
If V = {1, 2, 3} how many possible edges can graph G have?
11.1
3 edges:
{1, 2} {1, 3} {2, 3}
u - v or v-u
11.1
represents the edge for {u, v}
tells us that u and v are linked by an edge
Vertices and u and v are — by —
11.1
linked
an edge
Incident
11.1
the edge is incident to its endpoints (vertices)
“the edge u-v is incident to u and v”
Adjacent/Neighbors
11.1
two vertices that share an edge
Ex: u-v are adjacent
Degree
11.1
degree of a vertex:
the number of neighbors of a vertex
Degree (notation)
11.1
deg(u)
the number of vertices adjacent to u
Isolated
11.1
a vertex of degree 0
no neighbors
Handshaking Lemma
11.1
the sum of the degrees of all nodes in a graph is twice the number of edges
Handshaking Lemma (notation)
11.1
Σ{v∈V} deg(v) = 2|E|
add up the degrees of all the nodes and it’s equal to 2 times the number of edges
11.1
Handshake Lemma
In the handshake lemma, what does every part of the metaphor represent?
11.1
people: nodes/vertices
number of people each person shakes hands with: degrees
handshake: edge
Handshake Lemma (proof)
11.1
since each edge is incident to exactly two vertices, each edge contributes two to the sum of degrees of the vertices
Number of vertices of odd degree proposition
11.1
in any graph there are an EVEN number of vertices of odd degree
Even number of vertices with odd degree proof
11.1
Σ{v∈V} deg(v) = Σ{v∈V_e} deg(v) + Σ{v∈V_o} deg(v)
LHS: handshaking RHS: rule of thumb
In the graph G = (V, E) all vertices have degree 1. How many vertices can G have?
11.1
since every vertex has 1 degree,
sum of all degrees = |V|
handshake says: |V| = 2|E|
so must have even number of vertices
What are two ways you can calculate the sum of degrees?
11.1
way 1: add degrees of all vertices
way 2: count edges and multiply by 2
G = (V, E) and all vertices have an even degree. Can G have as many vertices as we wish?
11.1
Yes with an endless graph where each of the n vertices has 0 edges (and thus 0 degree) since 0 is even
Edgeless Graphs
11.2
some vertices and no edges
|V| ≥ 1
E = ∅ and |E| = 0
Complete Graphs (notation)
11.2
K_n = (V, E) where |V| = n
and E = {{u,v} | u,v ∈ V u≠v}
Complete Graphs
11.2
- has edges between any two vertices
- has the maximum number of edges
- no isolated vertices