Subgraph

Context: FIT1058_MOC Β· a Graph sitting inside another Β· and Β· the containment relation Β· basis of components

Quick Revision

  • 🎯 Objective: inside βž” and , written .
  • πŸ“¦ Core Components: double containment βž” validity (endpoints retained) βž” proper .
  • ⚑ Key Constraint: must itself be a graph β€” can’t keep an edge while dropping an endpoint.

πŸ“ Core

1. The Subgraph

  • Definition βž” with and ; write .
  • Proper βž” if and .

2. Validity Condition

  • a graph βž” every edge in has both endpoints in .
  • Can’t orphan an edge βž” dropping an endpoint drops its edges.

3. Variants

  • Induced βž” keep all edges among .
  • General βž” keep only some (the base definition).

Key identities:

When It Flips: is a partial order β€” it is double containment. Proper excludes itself, used to define a maximal connected subgraph = a component. Special graphs appear as subgraphs (" contains a ").

πŸ“Š Exam Execution Trace

Manual Execution Trace

Is ?

Step / StateCheckResult
0 (Init)β€”β€”
1βœ…
2βœ…
3endpoints in βœ…

⚠️ Common Mistakes

  • πŸ’‘ alone is not enough βž” every retained edge needs both endpoints retained, else isn’t a graph.

🧠 Active Recall