Repository navigation
Clarify generation number in dorogovtsev_goltsev_mendes_graph() - #7473
Conversation
|
The documentation for DGM graphs still looks like it could use a revamp. Let me know if this is something we want to add to this PR. |
rossbar
left a comment
There was a problem hiding this comment.
Thanks @Peiffap - IMO this is actually a semantics issue rather than an implementation issue - see my comment and LMK what you think!
|
As a side note, is it supposed to be quite messy to get documentation built locally, or to run doctests? I find myself having to manually purge several files every time I run |
dschult
left a comment
There was a problem hiding this comment.
This is Very Nice ---- thank you.
The new reference link is helpful.
The new test for nonnegative n.
The new Raises doc section.
The nicely rewritten for loop structure.
I'm not sure about using draw_planar instead of draw, and would prefer latex not be used since those expressions are easily written in ascii. Other comments are below.
Thanks very much!
4e70c58 to
c6e147b
Compare
dschult
left a comment
There was a problem hiding this comment.
I've only got one very minor comment here.
Thanks for this!
dorogovtsev_goltsev_mendes_graph()
- Correct vertex and edge counts in docstring
- Explicitly mention the meaning of the generation parameter
- Miscellaneous other improvements to docstring
- Reformat the function code more clearly
- Add several tests based on properties of DGM algorithm
- Add planarity checks for small graphs
- Use pytest context manager for exception tests
- Revert draw_planar -> draw in docs
- Clean up docstring
- Simplify loop indices in generation algorithm
- Only mention n < 0 error once
- Use NetworkX terminology
- Clean up error messages
|
Thanks @rossbar! Sorry about the branch... I'm glad to have it be freed up now. If you want me to take a look at some of the other changes you have in mind, just let me know. |
Clarifies the meaning of the generation number in DGM graphs, as discussed in #7472.
Also contains additional tests based on average clustering and average shortest path length in the original paper, as well as minor changes to wording.
Fixes #7472.