VertexInComponent

VertexInComponent[g,{v1,v2,}]

gives the vertices in the graph g that have a directed path to at least one of v1, v2, .

VertexInComponent[g,{v1,v2,},k]

gives the vertices with a directed path to at least one of v1, v2, of at most length k.

VertexInComponent[g,{v1,v2,},{k}]

gives the vertices at length exactly k.

VertexInComponent[{vw,},]

uses rules vw to specify the graph g.

Details

Examples

open allclose all

Basic Examples  (1)

Find the in-component of a vertex:

Highlight the in-component of a vertex:

Scope  (8)

VertexInComponent works with undirected graphs:

Directed graphs:

Multigraphs:

Mixed graphs:

Use rules to specify the graph:

Use patterns to select a subset of vertices:

Find the in-component connected to a vertex by a path of at most length 2 in a graph:

VertexInComponent works with large graphs:

Properties & Relations  (1)

Use VertexOutComponent to find the out-component for directed graphs:

Introduced in 2010
 (8.0)
 |
Updated in 2014
 (10.0)
2015
 (10.3)
2020
 (12.1)