-
Notifications
You must be signed in to change notification settings - Fork 4
Graph Matrices
Ed Scheinerman edited this page Feb 19, 2022
·
4 revisions
-
adjacency(G)
: the adjacency matrix of the graph. -
laplace(G)
: the Laplacian matrix of the graph. -
normalized_laplace(G)
: the normalized Laplacian matrix of the graph. -
dist_matrix(G)
: distance matrix. -
incidence(G,signed=true)
: vertex-edge incidence matrix.
-
char_poly(G)
: characteristic polynomial of the adjacency matrix. -
eigvals(G)
: eigenvalues of the adjacency matrix. Alsoeigvals(G,func)
wherefunc
is a matrix-valued function ofG
(e.g.,eigvals(G,laplace)
).
The function chromatic_polynomial
can be found in the SimpleGraphAlgorithms
module.