networks
spanpoly
span polynomial of an undirected graph
Calling Sequence
Parameters
Description
Examples
spanpoly(G, p)
G
-
undirected graph or network
p
variable in span poly (usually edge probability)
Important: The networks package has been deprecated.Use the superseding command GraphTheory[SpanningPolynomial] instead.
The span polynomial in variable p gives the probability that G is spanning when each edge operates with probability p.
When G is connected, this is the all-terminal reliability polynomial of G, and gives the probability that G is connected when each edge operates independently with probability p.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[spanpoly](...).
with⁡networks:
G≔complete⁡4:
addedge⁡1,1,2,G:
spanpoly⁡G,p
p3⁢6⁢p4−32⁢p3+66⁢p2−63⁢p+24
spanpoly⁡G,12⁢2nops⁡edges⁡G
172
See Also
GraphTheory
GraphTheory[SpanningPolynomial]
networks(deprecated)[acycpoly]
networks(deprecated)[chrompoly]
networks(deprecated)[flowpoly]
networks(deprecated)[rankpoly]
with
Download Help Document