Repository navigation
doc: improve docstring for hypercube_graph. - #8012
Conversation
Help Needed: Test Failures in
|
Try running the commands from the example in your local python interpreter. Ensure that, when run in order, each command executes successfully, and that their output exactly matches what is given in the example. |
hii, |
MridulS
left a comment
There was a problem hiding this comment.
Thanks for your contribution!
Please do go through the networkx tutorial and the contributing guide to get a better overview of networkx development :)
|
Hi @MridulS , |
|
@ishrathtahaseen-9 just a heads up - there was already a PR open for this. Generally it's good to double-check that there aren't already existing PRs for issues. No worries in this case, as the other one had gone stale, so let's focus on getting this in! |
Thank you! for letting me know, i'll make sure to check for existing PRs next time.Looking forward to getting this one merged! |
5052c61 to
c9b9577
Compare
amcandio
left a comment
There was a problem hiding this comment.
LGTM. The types of graphs seem like a good use case for dynamic graphs, where we don't store the nodes and edge on memory but we generate them on-demand based on their predefined relationships.
"Thanks for the feedback and the suggestion! I agree that dynamic graphs could be a great way to optimize memory usage, especially for large or complex graphs. I’ll definitely keep this in mind for future enhancements. Appreciate your input!" |
LorentzFactor
left a comment
There was a problem hiding this comment.
Should we consistently italicize n-?
|
It looks like @MridulS 's suggestions have been overridden by a force-push. @ishrathtahaseen-9 please make sure you pull before pushing again so we don't lose the contributions from reviewers! |
Thank you for pointing that out! I apologize for the force-push- i'll make sure the latest changes before pushing next time to avoid overwriting any suggestions. Please let me know if there is any way i can undo it or recover the suggestions. Appreciate the feedback! |
|
Co-authored-by: Colman Bouton <[email protected]>
Co-authored-by: Colman Bouton <[email protected]>
374cf3c to
3483d3f
Compare
rossbar
left a comment
There was a problem hiding this comment.
In an attempt to get this unstuck, I went ahead and re-applied some of the comments and made a few opinionated changes of my own (e.g. switching the example from edges -> neighbors).
My preference would be to get this in then continue iterating in follow-up PRs just to get it off the docket. Thanks @ishrathtahaseen-9 !
Co-authored-by: Mridul Seth <[email protected]>
3483d3f to
bfa04bc
Compare
* doc: improve docstring for hypercube_graph * doc:finalize docstring for hypercube_graph * style:reformatted code with black * correcting the example in hypercube docstring * reformatting using black * improve docstring for hypercube_graph * further imrove docstring for hypercube_graph * fix docstring formatting for hypercube_graph * improving docstring for hypercube_graph function * fix formatting and improve docstring for hypercube_graph * Update networkx/generators/lattice.py Co-authored-by: Colman Bouton <[email protected]> * Update networkx/generators/lattice.py Co-authored-by: Colman Bouton <[email protected]> * Touchups Co-authored-by: Mridul Seth <[email protected]> * First line of docstring grammar and whitespace --------- Co-authored-by: Ross Barnowski <[email protected]> Co-authored-by: Colman Bouton <[email protected]> Co-authored-by: Mridul Seth <[email protected]> Co-authored-by: Dan Schult <[email protected]>
Closes #7942
improving docstring for hypercube graph