VertexOutComponentGraph[g,{v1,v2,…}]
gives the subgraph of the graph g generated by the vertices that have a directed path from at least one of v1,v2,….
VertexOutComponentGraph[g,{v1,v2,…},k]
gives the subgraph of g generated by vertices with a directed path of at most length k from at least one of v1,v2,….
VertexOutComponentGraph[g,{v1,v2,…},{k}]
gives the subgraph of g generated by vertices of length exactly k.
VertexOutComponentGraph[{vw,…},…]
uses rules vw to specify the graph g.


VertexOutComponentGraph
VertexOutComponentGraph[g,{v1,v2,…}]
gives the subgraph of the graph g generated by the vertices that have a directed path from at least one of v1,v2,….
VertexOutComponentGraph[g,{v1,v2,…},k]
gives the subgraph of g generated by vertices with a directed path of at most length k from at least one of v1,v2,….
VertexOutComponentGraph[g,{v1,v2,…},{k}]
gives the subgraph of g generated by vertices of length exactly k.
VertexOutComponentGraph[{vw,…},…]
uses rules vw to specify the graph g.
Details and Options

- VertexOutComponentGraph works with undirected graphs, directed graphs, multigraphs and mixed graphs.

Examples
open all close allBasic Examples (3)
Scope (9)
VertexOutComponentGraph works with undirected graphs:
Use rules to specify the graph:
Use patterns to select a subset of vertices:
Find the out-component graph connected to a vertex by a path of at most length 2 in a graph:
VertexOutComponentGraph works with large graphs:
Applications (1)
Properties & Relations (1)
Use VertexOutComponent to find the out-component graph:
Related Guides
History
Text
Wolfram Research (2021), VertexOutComponentGraph, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexOutComponentGraph.html.
CMS
Wolfram Language. 2021. "VertexOutComponentGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VertexOutComponentGraph.html.
APA
Wolfram Language. (2021). VertexOutComponentGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexOutComponentGraph.html
BibTeX
@misc{reference.wolfram_2025_vertexoutcomponentgraph, author="Wolfram Research", title="{VertexOutComponentGraph}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/VertexOutComponentGraph.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_vertexoutcomponentgraph, organization={Wolfram Research}, title={VertexOutComponentGraph}, year={2021}, url={https://reference.wolfram.com/language/ref/VertexOutComponentGraph.html}, note=[Accessed: 13-August-2025]}