GraphTheory
GraphRank
compte rank of graph
Calling Sequence
Parameters
Description
Examples
GraphRank(G)
GraphRank(G, E)
G
-
graph
E
(optional) set of edges or arcs of the (di)graph
GraphRank returns rank of a graph G which is the number of vertices minus the number of connected components of G. If a set of edges (arcs) E of the (di)graph is specified, then the rank is number of vertices minus the number of connected components of the spanning subgraph of G with edge set E.
with⁡GraphTheory:
G≔Graph⁡1,2,3,4,4,5:
GraphRank⁡G
3
GraphRank⁡G,1,2,3,4
2
See Also
ConnectedComponents
NumberOfVertices
Download Help Document