NetworkX

Table Of Contents

Previous topic

networkx.generators.stochastic.stochastic_graph

Next topic

networkx.linalg.spectrum.adj_matrix

Linear algebra

Spectrum

Laplacian, adjacency matrix, and spectrum of graphs.

adj_matrix(G[, nodelist]) Return adjacency matrix of G.
laplacian(G[, nodelist]) Return the Laplacian matrix of G.
normalized_laplacian(G[, nodelist]) Return the normalized Laplacian matrix of G.
laplacian_spectrum(G) Return eigenvalues of the Laplacian of G
adjacency_spectrum(G) Return eigenvalues of the adjacency matrix of G.

Attribute Matrices

Functions for constructing matrix-like objects from graph attributes.

attr_matrix(G[, edge_attr, node_attr, ...]) Returns a NumPy matrix using attributes from G.
attr_sparse_matrix(G[, edge_attr, ...]) Returns a SciPy sparse matrix using attributes from G.