networks
charpoly
characteristic polynomial of an undirected graph
Calling Sequence
Parameters
Description
Examples
charpoly(G, x)
G
-
undirected graph or network
x
variable in characteristic poly
Important: The networks package has been deprecated. Use the superseding command GraphTheory[CharacteristicPolynomial] instead.
This routine computes the characteristic polynomial of the adjacency matrix of G expressed as a polynomial in x.
As part of the networks package it is normally loaded via with(networks) but the full name of networks['charpoly'](...) can also be used.
withnetworks:
charpolycomplete4,x
x4−6x2−8x−3
charpolycomplete2,3,x
x5−6x3
solve
0,0,0,6,−6
See Also
GraphTheory
GraphTheory[CharacteristicPolynomial]
networks(deprecated)[adjacency]
with
Download Help Document