Repository navigation
Add examples section to to_scipy_sparse_array - #7627
Merged
Merged
Conversation
jarrodmillman
self-requested a review
October 10, 2024 15:57
to_scipy_sparse_arrayto_scipy_sparse_array
dschult
approved these changes
Oct 10, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is largely motivated by issues like #7173 and #7580 - it's clear from questions like these that the mapping between the nodes in the networkx graphs and the row/col indices of the adjacency matrix is a common point of confusion.
This PR attempts to address this confusion by re-working and significantly expanding the examples section of the
to_scipy_sparse_arraydocstring.I've also included some minor rst formatting updates in 06321dd and made similar formatting changes to the
adjacency_matrixdocstring (see 3e87b53), which is nearly the same.The main change is 50207dd, which adds the re-worked examples. For now, I only changed the
to_scipy_sparse_arraydocstring so we can focus on the content changes in review. I would propose to add the examples section to theadjacency_matrixdocstring as well after it's been thoroughly reviewed!