Skip to content

Makes girvan_newman return communities as sets. - #1703

Closed
jfinkels wants to merge 1 commit into
networkx:masterfrom
jfinkels:community-sets
Closed

jfinkels wants to merge 1 commit into
networkx:masterfrom
jfinkels:community-sets

Conversation

@jfinkels

@jfinkels jfinkels commented Aug 4, 2015

Copy link
Copy Markdown
Contributor

Previously, the community-finding algorithm girvan_newman returned a
list of tuples of lists of nodes. Now the function returns an iterator
over tuples of sets of nodes, each set representing a community. This
matches the behavior of the other community-finding functions.

This also prevents computing the connected components of the graph an
additional time when yielding the tuples of communities.

@jfinkels
jfinkels force-pushed the community-sets branch 2 times, most recently from 3737d1e to d4aefb4 Compare August 5, 2015 04:54
Previously, the community-finding algorithm `girvan_newman` returned a
list of tuples of lists of nodes. Now the function returns an iterator
over tuples of sets of nodes, each set representing a community. This
matches the behavior of the other community-finding functions.

This also prevents computing the connected components of the graph an
additional time when yielding the tuples of communities.
@hagberg

hagberg commented Dec 27, 2015

Copy link
Copy Markdown
Member

Needs coordination with other G-N pull requests and issues e.g. #1799

@dschult

dschult commented Feb 7, 2016

Copy link
Copy Markdown
Member

If edge_subgraph can help here, it was implemented in #1740 and now merged.

@dschult dschult closed this in ce4544c Apr 14, 2016
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