VertexInComponent

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

VertexInComponent[g,{v1,v2,},k]
gives the vertices with a directed path to at least one of , , of at most length k.

VertexInComponent[{vw,},]
uses rules to specify the graph g.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Find the in-component of a vertex:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Highlight the in-component of a vertex:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2010
(8.0)
| Updated in 2015
(10.3)
Translate this page: