magnetic_spectrum#
- magnetic_spectrum(G, *, q=0.25, weight='weight', normalized=False)[source]#
Returns eigenvalues of the magnetic laplacian matrix with phase
q.- Parameters:
- GDiGraph
Directed graph
- qfloat (default=0.25)
The phase of the magnetic potential is the charge parameter 0 <= q <= 0.5. At q=0 returns the standard Laplacian.
- weightstring or None, optional (default=’weight’)
The edge data key used to compute each value in the matrix. If None, then each edge has weight 1.
- normalizedbool, optional (default=False)
If True, return the spectrum of the normalized magnetic laplacian matrix. If False, use the magnetic laplacian matrix without normalization.
- Returns:
- evalsnp.ndarray
Eigenvalues of the magnetic Laplacian matrix
- Raises:
- NetworkXNotImplemented
If
Gis undirected or a multigraph.
See also
magnetic_laplacian_matrix