Taking the Subgraph Induced by a Vertex Set
An induced subgraph keeps a chosen set of vertices and every original edge with both endpoints in that set.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Choose three from four
With edges A–B, A–C, B–C, and C–D, retaining A, B, C preserves the triangle and drops C–D. The chosen subset determines all kept edges.
Distinguish dropping an edge intentionally
Keeping those three vertices but excluding B–C gives a subgraph that is not the one induced by this set. When building a filtered graph from edge records, document whether vertex filters alone determine adjacency.[1]
Keep every original edge whose endpoints survive
Start with edges A–B, B–C, C–D and A–C. Select vertices A, B and C. The induced subgraph keeps all three edges among them, including the diagonal A–C. Deleting A–C gives a subgraph but changes the induced subgraph on the same vertex set. See reading graph vertices and edges.
Selected: {A,B,C}
Retained: A–B,B–C,A–C
Dropped: C–D because D is outside
Result is a triangle
Test an included vertex without included neighbors
A chosen vertex may be isolated in the resulting graph even if it had edges originally. Keep it in the vertex set. For directed multigraphs, retain directions and all included edge records under the model.