GraphTheory
LaplacianMatrix
compute Laplacian or Kirchhoff matrix
Calling Sequence
Parameters
Options
Description
Definition
Examples
Compatibility
LaplacianMatrix(G, options)
G
-
graph
options
normalized, storage, datatype, or order
The options argument can contain one or more of the options shown below.
normalized=truefalse
If the option normalized is specified, then Laplacian matrix L is normalized so that and if there is an edge from vertex to vertex and 0 otherwise.
datatype, order, and storage
The Matrix options datatype, order, and storage may be specified. The default values of these options are anything, C_order, and rectangular respectively. For information on the use of these options, see the Matrix help page.
The LaplacianMatrix command returns the Laplacian matrix L of a simple undirected graph G. The Laplacian matrix is sometimes called the Kirchhoff matrix. It is defined as follows:
If G has vertices and is the degree of the th vertex in G, then L is an by symmetric matrix where and is -1 if there is an edge from vertex to vertex and 0 otherwise.
Kirchhoff's theorem states that the number of spanning trees of a graph G is the product of the nonzero eigenvalues of the Laplacian matrix of G divided by n the number of vertices of G. Let us verify that the triangle graph K3 has three spanning trees.
The GraphTheory[LaplacianMatrix] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
AdjacencyMatrix
Download Help Document