gives the subgraph of the graph g generated by the vertices that have a directed path to at least one of v1,v2,….
gives the subgraph of g generated by vertices with a directed path of at most length k to at least one of v1,v2,….
gives the subgraph of g generated by vertices of length exactly k.
uses rules vw to specify the graph g.
Details and Options
- VertexInComponentGraph works with undirected graphs, directed graphs, multigraphs and mixed graphs.
Examplesopen allclose all
Basic Examples (3)
VertexInComponentGraph works with undirected graphs:
VertexInComponentGraph works with large graphs:
Properties & Relations (1)
Use VertexInComponent to find the in-component graph:
Wolfram Research (2021), VertexInComponentGraph, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexInComponentGraph.html.
Wolfram Language. 2021. "VertexInComponentGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VertexInComponentGraph.html.
Wolfram Language. (2021). VertexInComponentGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexInComponentGraph.html