寫一些課本、課堂、網路上的扣扣、圖待增。持續更新中…
1. Graphs
Define a graph
A pair of sets such that
Some notations
- : vertix set
elements of are called vertices / nodes / points
e.g. - : edge set
elements of are called edges / arcs / lines
e.g. - Incident: is incident with if
The set of all edges incident with a vertex is denoted by - Adjacent / Neighbouring: are adjacent if
- Indepedent / Stable set: are independent if
Types of graphs
- : empty graph
- Trivial graph: graph of order 0 or 1
Subgraphs
- Induced subgraph: subgraph of with some vertices removed, and all edges between them removed as well.
- Spanning subgraph: subgraph of with all vertices of
- Line graph: subgraph of with all edges of
- Improper subgraph: subgraph of with all edges of , otherwise proper subgraph.
Properties of graphs
- Complete: every pair of distinct vertices are adjacent, denoted by
Homorphisms
Let be graphs.
A homomorphism from to is a function such that
Isomorphic
If is a bijection and its inverse image is a homomorphism, then is an isomorphism and is isomorphic to , written as
Degree of a vertex
Let be a non-empty graph.
- : The set of neighbours of a vertex
- or : The degree or valency of a vertex
- isolated vertex: A vertex of degree 0 is called an
- : The maximum degree of
- : The minimum degree of
- k-regular / regular: All vertices of have the same degree
Some Formula
- Average degree of :
Prop. 2.1
As is an integer, is even
Prop. 2.2
Every graph with at least one edge has a subgraph with
Paths and cycles
Paths
Non-empty graph
A sequence of vertices such that for
- walk: A sequence of vertices such that for
- trail: A walk with no repeated edges
- circuit: A walk with no repeated vertices except thefirst and last
Cycles
A circuit with no repeated edges except the first and last
- Girth: The minimum length of a cycle
- Circumference: The maximum length of a cycle
- Chord: An edge joining two vertices of a cycle but not part of the cycle
- Distance: The length of the shortest path between two vertices
- Diameter: The maximum distance between two vertices
Prop. 1.3
Every graph contains a path of length and a cycle of length at least
Prop. 1.4
A graph of radius at most and maximum degree at most has fewer than vertices
Thm. 1.5
Let be a graph.
If and , then
Cor. 1.6
If then
Connectivity
- Connected: A graph is connected if there is a path between every pair of vertices
- Component: A maximal connected subgraph, it is also a induced subgraph
Thm. 1.7
Let .
Every graph with has a -connected subgraph with
1.5 Trees and forests
forest / tree / leaves
A acyclic graph is a forest. A connected forest is a tree. A vertex of degree 1 is a leaf
root / tree-order
- root is the least element in its tree-order
- Define a partial ordering on the vertices of a tree , where for .
As an expression of height: (down-closure of y) and (up-closure of x)背法:的話,是最高的,所以是包含的所有點;的話,是最低的,所以是包含的所有點
height / level / normal tree
- chain: the down-closure of every vertex is a chain
- height: the vertices at distance from the root have height and form the -th level of
- normal tree: a rooted tree contained in a graph is called normal if the ends of every -path are comparable in the tree-order of
Thm.
The following assertions are equivalent for a graph :
- is a tree
- Any two vertices of are linked by a unique path in
- is minimally connected, i.e. is connected but is disconnected for any
- is maximally acyclic, i.e. contains no cycle but does for any two non-adjacent vertices
Bipartite graphs
A graph is r-bipartite : admits a partition into r classes such that every edge has its end in different classes
Complete bipartite graph
An r-bipartite graph with every two vertices from different partitions are adjacent, denoted by
- star:
- centre: The vertex in the singleton partition class of a star
Prop.
A graph is bipartite if and only if it contains no odd cycle
Proof:
- : Suppose is bipartite with partitions , let be a odd cycle in , where if is odd, if is even. we know from our assumption that is an odd cycle, so and are in the same partition, however, by the definition of bipartite graph, and are in different partitions, a contradiction.
- : Let be a graph with no odd cycles, we can partition into by the parity of the distance from a fixed vertex .
Suppose , then if the distance from to is even, otherwise .
- First, we need to prove that , wlog, let or , then are in the same partition, so is not an edge, which is a contradiction. Wlog, suppose there exist or such that .
Let , then . and are even.
However , which is a contradiction. So .- Second, let be the shortest path between and , be the shortest path between and , that and have the same parity, they start at but can also have another common vertex, label it as .
The path is separated by into two parts, and , is the part from to , is the part from to .
The path is separated by into two parts, and , is the part from to , is the part from to .
To have the shortest path, the length of and are the same, , so .
Therefore, , where is an odd cycle, which contradict our assumption that has no odd cycle.