CHAPTER 2: Walks Flashcards
WALK
let G be a simple graph. a sequence of vertices v_!,.., v_nsuch that v_i is adjacent to v_{i+1}
CONNECTED
craft g is connected if for any two vertices v and w there is a walk from v to w
TRAIL
walk with no repeated edges
PATH
walk with no repeated vertices
BIPARTITE GRAPH
a graph is bipartite if we can colour every Vertex either blue or red so that every Edge is between a blue and red vertex
edges only between two groups
•—○
•–○
•---○
○
complete bipartite graph
Every vertex is connected
bipartite graph
For each red vertex can connect to n blue vertices so nm edges in complete bipartite graph
K_{m,n}
K_{m,n} consists of m+n vertices (m red, n blue) and an edge between any red vertex and any blue vertex
complete bipartite graph
For each red vertex can connect to n blue vertices so nm edges in complete bipartite graph
C_4
C_4 (cycle graph) is complete bipartite graph also
isomorphic to K_{2,2}
refined isomorphism by labelling alternating colours
C_5
C_5 is not bipartite: not possible to label one red alternating one blue such that only either red or blue
when is cycle graph C_n bipartite graph
we must alternate between red and blue hence we must have an even number of vertices
Lemma bipartite and cycles
a graph G is bipartite if and only if it doesn’t have any cycles of odd length
ie it doesn’t have a subgraph of the form C_{2k+1}
LEMMA
PROOF
a graph g is bipartite if and only if it doesn’t have any cycles of odd length
ie it doesn’t have a subgraph of the form C_{2k+1}
Bipartite implies no odd cycles:
subgraphs of B_i are b_i
we must alternate between red and blue hence we must have an even number of vertices
……
and no odd cycles implies bipartite:
suppose G has no odd Cycles. Pick one Vertex V as RED any immediately adjacent have to be BLUE and any immediately adjacent to these must be RED. If G is bipartite anything of odd distance from V is BLUE and even distance is RED.
DISTANCE
let G be connected and let v,w be 2 vertices.
The DISTANCE from v to w is the least number of edges in any walk from v to w
distance if not biparite
if not bipartite then there exists and even path from red to Blue ie an odd cycle
there is a danger of choosing a pathway to you that Mrs out vertices from in between but contradictions allow us to see when it’s not bipartite rather than when it is bipartite
FOREST
a forest is a graph without Cyclesa forest is a graph without Cycles
eg diagram a forest of three trees
TREE
a tree is a connected graph without Cycles
“trees have enough edges:theyre connected”
“trees don’t have too many edges: no Cycles”
equivalent statements for a graph G with n vertices
1) G is a tree
2) there is a unique path in G between any two vertices
3) G is connected and has n-1 edges
4) G has no Cycles and n-1 edges
5) G is connected but removing any Edge disconnect G
6) G has no Cycles but adding any Edge creates a cycle
LEAF
let T be a tree. A Vertex V in T is a leaf if d(v)=1 / degree 1
ie only one edge
LEMMA trees and leaves
let’s be a tree with 2 ≤n ≤ ∞ vertices. Then T have at least two leaves.
proof:
pick and edge if no Loops so never return and finitely many vertices so we can’t go on forever: if we get stuck that’s a leaf