-
Basic
-
Terminologies
- adjacent
- incident
-
Complete graph
- edge number
-
subgraphs
- clique
- independent set
- induced subgraph
-
bipartite
- k-cube
-
path
-
walk
-
def: seq. of v and e
- (Lemma) every u,v walk contains u,v path
-
trail
- def: no repeated edge
- closed
-
path
- def: no repeated vertex
-
cycle
- def: closed trail, length>1, no repeated vertex
- (Theorem) Bipartite <=> no odd cycle
-
degree
- regular
- degree sum = 2*e(G)
- #(odd degree vertex) = even
-
Theorem and Propositions
- [any v, d(v)>k] => [G has a path of length>k]
- [any v, d(v)>k; k>2] => [G has a cycle of length>k+1]
- two longest path has at least 1 vertex in common
- Adjacency matrix
- isomorphic
-
connection
-
connected
- def: u,v path exist => u,v connected
- def: u connected to every v => G connected
-
components
- def: maximal connected subgraph
-
cut
-
deletion increases #(components)
- cut vertex
- cut edge
-
Theorem and Propositions
- cut edge <=> belongs to no cycle
-
Eulerian
-
circuit
- def: closed trail
- def: exist a circuit contains all edge
-
Theorem and Propositions
- Eurlerian <=> degree(all vertex) : even
-
Digraph
- edge is ordered pair of vertices
-
outdegree (d+)
- successor
-
indegree (d-)
- predecessor
- sum(d+)=sum(d-)=#(e(G))
-
connection
- u,v connected <=> exists u,v path
- strongly connected <=> any u,v pair connected
- strong components <=> max strong connected subgraph
-
Tree
-
acyclic
- def: no cycle
-
defs
-
Tree
- connected acyclic graph
- connected and (n-1) edges
- n-1 edges and acyclic
- each pair of vertex connected by unique path
- distance: 最短path长度
- diameter: 图中最长的distance
- eccentricity of v: 图中与v相隔最长的distance
- radius: 图中最短的eccentricity
- Forest: acyclic graph
- leaf: vertex: d(v)=1
- spanning tree: spanning subgrah that is a tree
-
Theorem and Propositions
- [n>1] => [>2 leaves]
- v is leave => T-v is Tree
- every edge in T is cutting edge
- adding an edge to T => T has cycle
- T and T* is spanning Tree of G => for any e in E(T)-E(T*), there is a e* in E(T*)-E(T) such that T-e+e* is Tree
-
Counting trees
-
spanning tree of Kn
- t(n) = n^(n-2)
- Counting tree <=> sequence
-
MST
-
Kruskal's Algorithm
- 从E(G)中每次取出最小权的e,加入MST中,s.t. e的加入不能破坏acyclic性
-
Shortest path
- Floyd
-
Dijk
- 起始点v, 其他点到u初始距离=无穷,update
-
matching, cover
-
(max) matching
- def: edges w/ no common end points
- maximal: 不能扩展
- maximum: 没有更大
- perfect: 所有点都在matching中
- M-alternating: edge交替在M中
- M-augmenting: alternating + 起点终点不在M中
- Matching maximum <=> no augmenting
- G has a matching saturating X <=> |N(S)|>=|S| for all S in X
- k regular has perfect matching
-
(min) cover
- vertex cover: 点集, covers all edge
-
|vertex cover| >= |edge matching|
- bipartite => equals
-
(max) independent set & (min) edge cover
- S is vertex cover <=> V(G)-S is independent set
- max matching + min edge cover = n(G)
- bipartite => max independent set = min edge cover
- max独立集 = min点覆盖
- max边匹配 = min 边覆盖 (无孤立点)
- max 边匹配 = min点覆盖 (二分)
-
connectivity
-
vertex
-
vertex cut
- def: G-S becomes disconnected
-
connectivity
- Kn => n-1
- min vertex cut
-
k-connected
- any k <= connectivtiy
-
Haray's Graph
- n vertex graph with connectivity k, but min # of edge
- e(G) = (nk)/2
-
edge
-
edge cut
- edges connecting [S, ^S]
- edge cut is disconnecting set, reverse not true
- minimal disconnecting set is edge cut
- [G simple] => [connectivity <= edge connectivity <= min degree]
-
Theorem and Propositions
- [n(G) > 3] => [G is 2 connected iff any u,v has 2 disjoint paths]
- G is k-connected => (G+y) is k-connected if vertex y adjacent to at least k vertex in G
-
network flow
-
defs
- feasible
- tolerance
- augmenting path
- source sink cut
- Max flow min cut
-
Hamiltonian cycle
- def: spanning cycle
- circumference: G内最长cycle的长度
- Hamiltonian => any S in V, G-S has at most |S| components
- Hamiltonian <= n(G) >3 && 最小度 > n(G)/2
-
Hamiltonian <=> G的闭包也是Hamiltonian
- 闭包: 连接任意u,v,若d(v)+d(u)>n(G),重复直到不再存在这样的uv
- degree sequence d1<d2<d3..... 对所有i<n/2, 或者di>i或者d(n-i)>(n-i) => Hamiltonian
-
Coloring
-
defs
- coloring
- proper
- k-colorable
-
chromatic number
- 图的最小着色数
-
k-critical
- 图的最小着色数 且 任何子图都能用更少颜色着色
- 着色数<=最大度+1
- k-critical => [最小度>=k-1]
- Brook: 若非clique也非odd cycle,着色数<=最大度
-
Turan graph
- def: n vertex分为r partite,每个partite的size尽可能一样
- Turan graph是所有n vertex r partite中edge最多的
-
Planner Graph
- planner <=> 不含K5或者K33 subdivision
- 平面图可4着色
- 欧拉不变量: V+F-E=2