Neural Sync Active
Graph Theory: Basic Definitions
Registry Synced
Graph Theory: Basic Definitions
186 words
1 min read
Reading compass
Now · 5.1 Basic Definitions
Graph Theory: Basic Definitions
5.1 Basic Definitions
A graph G=(V,E) consists of:
- V = set of vertices (nodes)
- E = set of edges (pairs of vertices) Types:
- Simple graph: No loops or multiple edges
- Directed graph (digraph): Edges have direction
- Weighted graph: Edges have weights
5.2 Degree and Handshaking Lemma
Degree deg(v) = number of edges incident to v.
Corollary: Every graph has an even number of odd-degree vertices.
5.3 Paths and Cycles
- Walk: Sequence of vertices where consecutive vertices are adjacent
- Path: Walk with no repeated vertices
- Cycle: Path that starts and ends at same vertex
- Connected: For every pair of vertices, there's a path between them
- Component: Maximal connected subgraph
5.4 Special Graphs
| Graph | Notation | Properties |
|---|---|---|
| Complete graph | Kn | (2n) edges, every pair adjacent |
| Cycle | Cn | n vertices forming a single cycle |
| Path | Pn | n vertices in a line |
| Bipartite | Km,n | Two parts, all edges between parts |
| Complete bipartite | Km,n | All possible edges between parts |