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

TermRelatesExample
adjacency vertex–vertex
incidencevertex–edge in
isolateddegree 0
leafdegree 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 / StateQueryAnswer
0 (Init)
1neighbours of
2edges incident with
3classify 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