Wolfram Language & System 10.4 (2016)|Legacy Documentation
gives the subgraph of the graph g generated by the vertices .
gives the subgraph generated by the edges .
gives the subgraph generated by the vertices and edges that match the pattern patt.
uses rules to specify the graph g.
- The subgraph generated by the vertices includes the vertices and all edges connecting them in the original graph g.
- The subgraph generated by the edges includes the edges and all edges connecting vertices of in the original graph g.
- Subgraph works with undirected graphs, directed graphs, multigraphs, and mixed graphs.