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 / State | Check | Result |
|---|---|---|
| 0 (Init) | β | β |
| 1 | β | |
| 2 | β | |
| 3 | endpoints in | β |
β οΈ Common Mistakes
- π‘ alone is not enough β every retained edge needs both endpoints retained, else isnβt a graph.
π§ Active Recall
Define a subgraph and proper subgraph, and the extra validity condition.
- Hint: Double containment + graph.
Answer
- Short answer: iff and ; proper if ; each edgeβs endpoints in .
- Why: Partial order β behaves like .
Why can't you keep an edge while dropping one of its endpoints?
- Hint: must be a graph.
Answer
- Short answer: An edge needs both .
- Why: No orphan edges β an edge with a missing endpoint isnβt a graph.