[SciPy-User] Computing Eigenvalue of Laplacian Matrix

Alejandro Weinstein alejandro.weinstein@gmail....
Mon Jan 14 11:48:52 CST 2013


On Mon, Jan 14, 2013 at 6:38 AM, Subhabrata Banerjee
<subhabangalore@gmail.com> wrote:
> I like to compute the eigenvalue of Laplacian matrix and then like to view
> it as graph.

import matplotlib.pyplot as plt
import numpy as np
from numpy.linalg import eig

# Assuming the laplacian is in matrix L
evalues, evec = eig(L)

plt.plot(np.real(evalues))

Alejandro


More information about the SciPy-User mailing list