Skip to content

Add examples section to to_scipy_sparse_array - #7627

Merged
dschult merged 6 commits into
networkx:mainfrom
rossbar:doc/to-scipy-sparse-array
Oct 10, 2024
Merged

dschult merged 6 commits into
networkx:mainfrom
rossbar:doc/to-scipy-sparse-array

Conversation

@rossbar

@rossbar rossbar commented Sep 9, 2024

Copy link
Copy Markdown
Contributor

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_array docstring.

I've also included some minor rst formatting updates in 06321dd and made similar formatting changes to the adjacency_matrix docstring (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_array docstring so we can focus on the content changes in review. I would propose to add the examples section to the adjacency_matrix docstring as well after it's been thoroughly reviewed!

@jarrodmillman jarrodmillman changed the title DOC: Add extensive examples section to to_scipy_sparse_array Add examples section to to_scipy_sparse_array Oct 10, 2024

@jarrodmillman jarrodmillman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@jarrodmillman jarrodmillman added this to the 3.4 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants