Skip to content

GraphComponentCount on LabeledGraph ​

The connected components: the vertices that are the first of their component.

On LabeledGraph

FindStat's St000287. The graph with no vertices gives 0.

Called as CombinatorialStat(x, "GraphComponentCount"). The head's page has its examples.

Live

Distribution

Over LabeledGraphs at each size, tallied here in your browser; sizes past 6 are not offered.

FindStat St000287

The number of connected components of a graph.

ObjectValue
([],1)1
([],2)2
([],3)3
([],4)4
([],5)5
([],6)6
([(0,1)],2)1
([(1,2)],3)2

Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000287 has the rest.