networks
rankpoly
(Whitney) rank polynomial of an undirected graph
Calling Sequence
Parameters
Description
Examples
rankpoly(G, x, y)
G
-
undirected graph or network
x
rank variable in rank poly
y
corank variable in rank poly
Important: The networks package has been deprecated.Use the superseding command GraphTheory[RankPolynomial] instead.
When n⁡G = number of vertices, m⁡G = number of edges, and c⁡G = number of components, one defines rank(G) = n(G) - c(G) and corank(G) = m(G) - rank(G).
The rank polynomial is a sum over all subgraphs H of G of x^(rank(G) - rank(H)) y^corank(H).
The coefficient of xi⁢yj in the rank polynomial is thus the number of spanning subgraphs of G having i more components than G and having a cycle space of dimension j.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[rankpoly](...).
with⁡networks:
G≔complete⁡4:
rankpoly⁡G,x,y
x3+y3+6⁢x2+4⁢x⁢y+6⁢y2+15⁢x+15⁢y+16
rankpoly⁡G,1,1
64
rankpoly⁡G,1,0
38
rankpoly⁡G,0,1
rankpoly⁡G,0,0
16
See Also
GraphTheory
GraphTheory[RankPolynomial]
networks(deprecated)[acycpoly]
networks(deprecated)[flowpoly]
networks(deprecated)[tuttepoly]
with
Download Help Document