Graph
Context: FIT1058_MOC · an abstract model of a network · a set of vertices plus edges (unordered vertex-pairs) · adjacency is a relation on vertices
Quick Revision
- 🎯 Objective: : vertices + edges (unordered pairs) ➔ models which pairs interact.
- 📦 Core Components: adjacency () ➔ incidence ➔ isolated/leaf vertices.
- ⚡ Key Constraint: adjacency is a symmetric irreflexive Binary Relation; specify both and .
📝 Core
1. The Graph
- Definition ➔ ; vertices, edges (unordered pairs of distinct vertices).
- Models ➔ structure of interactions, discarding all else.
2. Adjacency & Incidence
- Adjacent ➔ iff (vertex–vertex).
- Incident ➔ vertex is an endpoint of an edge (or two edges share one).
3. Special Vertices
- Isolated ➔ in no edge (degree 0).
- Leaf ➔ in exactly one edge (degree 1).
Key identities:
⚖️ Core Decision Matrix
| Term | Relates | Example |
|---|---|---|
| adjacency | vertex–vertex | |
| incidence | vertex–edge | in |
| isolated | degree 0 | |
| leaf | degree 1 |
When It Flips: adjacency is a symmetric, irreflexive Binary Relation on — the bridge to relation theory; Connectivity turns the walk relation into an Equivalence Relation. Here graphs are simple unless stated (Types of Graphs).
📊 Exam Execution Trace
Manual Execution Trace
:
| Step / State | Query | Answer |
|---|---|---|
| 0 (Init) | — | — |
| 1 | neighbours of | |
| 2 | edges incident with | |
| 3 | classify | isolated |
⚠️ Common Mistakes
- 💡 Must give both and ➔ an isolated vertex leaves no trace in the edge list; edges are sets, so no vertex is adjacent to itself.
🧠 Active Recall
Define a graph, and distinguish adjacency from incidence.
- Hint: Vertex–vertex vs vertex–edge.
Answer
- Short answer: , edges unordered pairs; adjacency relates two vertices, incidence a vertex to an edge.
- Why: ➔ ” incident with ” is a vertex–edge link.
Why specify the vertex set separately, and what are isolated and leaf vertices?
- Hint: Isolated vertices vanish from edges.
Answer
- Short answer: An isolated vertex is in no edge, so must be recorded; isolated = degree 0, leaf = degree 1.
- Why: Both ➔ the edge list alone loses isolated vertices.