Skip to content

add laplacian_spectrum example#6169

Merged
MridulS merged 6 commits intonetworkx:mainfrom
paulitapb:add_example_laplacian_spectrum
Nov 14, 2022
Merged

add laplacian_spectrum example#6169
MridulS merged 6 commits intonetworkx:mainfrom
paulitapb:add_example_laplacian_spectrum

Conversation

@paulitapb
Copy link
Copy Markdown
Member

@paulitapb paulitapb commented Nov 2, 2022

Added an example where the laplacian_spectrum is used to get the number of eigenvalues of the Laplacian matrix that are zero to count the number of connected components of a graph.

Also added a missed link to to_numpy_array

@rossbar rossbar added the outreachy-review A temp label to help reviewers organize outreachy PRs for review label Nov 8, 2022
paulitapb and others added 4 commits November 9, 2022 17:36
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Copy link
Copy Markdown
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty of removing the unused numpy import, but other than that LGTM. Thanks @paulitapb !

@rossbar rossbar removed the outreachy-review A temp label to help reviewers organize outreachy PRs for review label Nov 10, 2022
@MridulS MridulS merged commit c6a1dc8 into networkx:main Nov 14, 2022
@jarrodmillman jarrodmillman added this to the networkx-3.0 milestone Dec 2, 2022
MridulS pushed a commit to MridulS/networkx that referenced this pull request Feb 4, 2023
* add laplacian_spectrum example

* add missing reference to_numpy_array

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Rm unnecessary numpy import.

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Mjh9122 pushed a commit to Mjh9122/networkx that referenced this pull request Feb 27, 2023
* add laplacian_spectrum example

* add missing reference to_numpy_array

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Rm unnecessary numpy import.

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
* add laplacian_spectrum example

* add missing reference to_numpy_array

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Update networkx/linalg/spectrum.py

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>

* Rm unnecessary numpy import.

Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants