Skip to content

Add Introspection section to backends docs - #7556

Merged
dschult merged 15 commits into
networkx:mainfrom
eriknw:introspection_doc
Jul 17, 2024
Merged

dschult merged 15 commits into
networkx:mainfrom
eriknw:introspection_doc

Conversation

@eriknw

@eriknw eriknw commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

This is mostly aspirational for now, but it shows what's possible today and hopefully illustrates what we want to do.

CC @rlratzel @Schefflera-Arboricola

Let's see what silly Sphinx mistakes I made this time...

This is mostly aspirational for now, but it shows what's possible today
and hopefully illustrates what we want to do.
@eriknw eriknw added type: Documentation Dispatching Related to dispatching and backend support labels Jul 9, 2024
Comment thread networkx/utils/backends.py Resolved

@Peiffap Peiffap 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.

Better documentation is always nice!
Some minor nits and typos.

Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
eriknw and others added 4 commits July 9, 2024 17:45

@Peiffap Peiffap 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 :)

Comment thread networkx/utils/backends.py Resolved

@Schefflera-Arboricola Schefflera-Arboricola 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 @eriknw!

I have left a few comments/suggestions below.

Also, a general review comment-- I think it would be nicer(and more clear) if we would first document the current introspection capabilities we provide to a networkx backend user(i.e. simple DEBUG logging) and then list all the future functionalities that will be available. Bcoz even though it's exciting to talk about the future work-- a user is mostly coming to the docs to understand the current functionalities that they can use. LMK what you think.

Thanks!

Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
Comment thread networkx/utils/backends.py Resolved
@eriknw

eriknw commented Jul 11, 2024

Copy link
Copy Markdown
Contributor Author

Also, a general review comment-- I think it would be nicer(and more clear) if we would first document the current introspection capabilities we provide to a networkx backend user(i.e. simple DEBUG logging) and then list all the future functionalities that will be available. Bcoz even though it's exciting to talk about the future work-- a user is mostly coming to the docs to understand the current functionalities that they can use. LMK what you think.

This is a good perspective, thanks for all your suggestions @Schefflera-Arboricola. The current structure is what made sense to me when I was writing it, but I agree that we should focus on how we expect it to be read. It would also be nice to be able to update this text more smoothly as we incrementally implement introspection functionality. I'll think more carefully about this tomorrow, and I welcome more suggestions :)

@eriknw

eriknw commented Jul 12, 2024

Copy link
Copy Markdown
Contributor Author

I moved the future work to the end of "Introspection" based on @Schefflera-Arboricola's feedback, and I like it much better!

@Schefflera-Arboricola Schefflera-Arboricola 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 @eriknw, @Peiffap and @rossbar !

@dschult dschult 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.

This looks good to me!
Thanks...

@dschult
dschult merged commit 98eb513 into networkx:main Jul 17, 2024
@jarrodmillman jarrodmillman added this to the 3.4 milestone Jul 17, 2024
rossbar pushed a commit to Peiffap/networkx that referenced this pull request Sep 6, 2024
* Add `Introspection` section to backends docs

This is mostly aspirational for now, but it shows what's possible today
and hopefully illustrates what we want to do.

* haha, add `# doctest: +SKIP`

* Capitalize NetworkX

Co-authored-by: Gilles Peiffer <[email protected]>

* "Refer to"

Co-authored-by: Gilles Peiffer <[email protected]>

* "looking at the"

Co-authored-by: Gilles Peiffer <[email protected]>

* Fix link and make more clear (from feedback)

* Use `:func:` to link to betweenness centrality

Co-authored-by: Gilles Peiffer <[email protected]>

* conversion -> backend graph conversion

Co-authored-by: Aditi Juneja <[email protected]>

* Change online example to `all_pairs_bellman_ford_path_length`

Co-authored-by: Aditi Juneja <[email protected]>

* common backends -> trusted backends of NetworkX

Co-authored-by: Aditi Juneja <[email protected]>

* about the trusted backends -> about trusted backends

* Reword `.backends` attribute

Co-authored-by: Aditi Juneja <[email protected]>

* Move future work to the end and (try to) use intersphinx for `logging`

* Make italic

---------

Co-authored-by: Gilles Peiffer <[email protected]>
Co-authored-by: Aditi Juneja <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dispatching Related to dispatching and backend support type: Documentation

Development

Successfully merging this pull request may close these issues.

6 participants