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.
with⁡networks:
charpoly⁡complete⁡4,x
x4−6⁢x2−8⁢x−3
charpoly⁡complete⁡2,3,x
x5−6⁢x3
solve⁡
0,0,0,6,−6
See Also
GraphTheory
GraphTheory[CharacteristicPolynomial]
networks(deprecated)[adjacency]
with
Download Help Document