CHAPTER 2: Walks Flashcards
(49 cards)
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
Lemma tree vertices and edges
if T is a tree with n vertices, then T has n-1 edges
proof: Base n=1 has no edges
inductive step: Assume m less than n and T’ a tree with m vertices. Then T’ has m-1 edges
Let T have n vertices. SInce n bigger than 1 T has a leaf V by lemma.
if V is a leaf (with only one edge e) we can make a new graph T’ by deleting v and e- claim T’ is a tree.
(We show its connected and no cycles.)
T’ connected:
T assumed connected so any 2 vertices u and w have a unique path between them. This is also a path in T’ since we only deleted edge e which went to vertex v.
T’ no loops:
T’ has no cycles as C_n ⊆ T’ ⊆ T
(subgraph of T’ is a subgraph of T)
So if T’ had a cycle T would, but T is a tree (no cycles).
Hence we deleted v and edge next to it, e, for a new tree T’.
T’ has n-1 vertices so n-2 edges, so T has n-1 edges.
( since T’ has less than n vertices we can use inductive hypothesis. T* had n -1 vertices and it’s a tree
implies
T’ had n -2 edges. T has 1 more Edge than T’ so has n - 1 edges)
connected graph with n vertices and n-1 edges
If G is a connected graph with n vertices and n-1 edges then G is a tree
proof:
By induction on n. Base case n=1:
Find a Vertex of degree one delete it and Edge next to it. (But don’t know if it’s a tree. Need a different way to find a Vertex of degree 1)
inductive step: assume preposition true for all graphs with n -1 vertices
We use the handshaking lemma to show G must have a Vertex V of degree 1.
connected and more than one Vertex so we don’t have any vertices of degree 0 d(v)=0
want to prove we have a Vertex of degree 1. Assume for contradiction that are none. So every Vertex has degree d(v) ≥ 2.
we have n-1 edges so hand shaking lemma implies
2(e) = sum of v [d(v)]
2e= 2n-2 = sum of v [d(v)] bigger than sum of v[2] = 2 #vertices = 2n
contradiction as 2n-2 is not bigger than 2n.
let G have n vertices, n-1 edges and be connected. We show it has no Loops to show it’s a tree.
Base case n=1
inductive step: we saw G had a Vertex of degree 1 let this be V. Let e be The Edge connecting it.
One less Vertex and Edge. G’ is connected with n - 1 vertices and n-2 edges. This implies G’ is a tree.
So G is a tree.
Atom valency
Atom: C/N/O/H
Degree: 4/3/2/1
for carbon we don’t label Vertex, hydrogen isn’t drawing but it is inferred for degrees
ISOMER
graph with same degree sequence
eg H_2O has only 1 isomer
eg butane and isobutane same formula different graph
ALKANE
molecule with formula C_n H_{2n+2}
e.g
methane CH_4
ethane C_2 H_6
propane C_3H_8