Skip to content

find_asteroidal_triple improvement - #7736

Merged
MridulS merged 3 commits into
networkx:mainfrom
alabarre:find_asteroidal_triple_improvement
Nov 25, 2024
Merged

MridulS merged 3 commits into
networkx:mainfrom
alabarre:find_asteroidal_triple_improvement

Conversation

@alabarre

Copy link
Copy Markdown
Contributor

The current version of find_asteroidal_triple builds the complement of the graph and stores all its edges, which causes performance and memory usage issues for large graphs. This is easily fixed by iterating over non-edges in the graph.

@alabarre alabarre changed the title Find asteroidal triple improvement find_asteroidal_triple improvement Nov 25, 2024

@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 look good! Thanks for coming up with it and implementing it.

While we are here, could you remove the last 4 lines of the "Returns" section in the doc_string? It describes the return values of a preliminary function that combined both functions from this module. And it didn't get removed when the return value was changed.

If you don't have time or aren't comfortable with that, let me know and I'll do it.

I approve this PR, and would like the last 4 lines of the returns section in the doc_string removed (about the certificate parameter).

@alabarre

Copy link
Copy Markdown
Contributor Author

Just removed the obsolete portion as requested.

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

doc build failure is unrelated, thanks!

@MridulS
MridulS merged commit da5a010 into networkx:main Nov 25, 2024
@MridulS MridulS added this to the 3.5 milestone Nov 25, 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