Skip to content

CI,DOC: Only run one parallel betweenness example. - #8305

Merged
dschult merged 2 commits into
networkx:mainfrom
rossbar:reduce-parallel-betweenness-examples
Oct 6, 2025
Merged

dschult merged 2 commits into
networkx:mainfrom
rossbar:reduce-parallel-betweenness-examples

Conversation

@rossbar

@rossbar rossbar commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor

Run only one example graph instance instead of looping over 3 different instances. Simplifies the example and lightens the multi-cpu load on CI. For these reasons I think it's a good idea on it's own, but I'm also curious to see if it has any impact on #8297.

This also explicitly sets the number of processes to 2 for the multiprocessing pool. The default None uses cpu_count(), which is likely higher (and may behave strangely in a container... we've seen similar issues with openMP).

Run only one example graph instance instead of looping
over 3 different instances.
@rossbar rossbar changed the title DOC: Only run one parallel betweenness example. CI,DOC: Only run one parallel betweenness example. Oct 4, 2025
@MridulS MridulS added this to the 3.6 milestone Oct 6, 2025

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

Looks good!

@dschult
dschult merged commit a8fd555 into networkx:main Oct 6, 2025
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