Position nodes using the eigenvectors of the graph Laplacian.
Parameters : | G : NetworkX graph dim : int
weight : string or None optional (default=’weight’)
scale : float
|
---|---|
Returns : | dict : :
|
Notes
Directed graphs will be considered as unidrected graphs when positioning the nodes.
For larger graphs (>500 nodes) this will use the SciPy sparse eigenvalue solver (ARPACK).
Examples
>>> G=nx.path_graph(4)
>>> pos=nx.spectral_layout(G)