gives the subgraph of the graph g generated by the vertices vi.
gives the subgraph generated by the edges ej.
gives the subgraph generated by the vertices and edges that match the pattern patt.
uses rules vw to specify the graph g.
Details and Options
- The subgraph generated by the vertices v1,v2,… includes the vertices vi and all edges connecting them in the original graph g.
- The subgraph generated by the edges e1,e2,… includes the edges ej and all edges connecting vertices vi of ej in the original graph g.
- Subgraph works with undirected graphs, directed graphs, multigraphs, and mixed graphs.
Examplesopen allclose all
Basic Examples (1)
Properties & Relations (3)
Wolfram Research (2010), Subgraph, Wolfram Language function, https://reference.wolfram.com/language/ref/Subgraph.html (updated 2015).
Wolfram Language. 2010. "Subgraph." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/Subgraph.html.
Wolfram Language. (2010). Subgraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Subgraph.html