AleksanderWWW / abcd-graph

MIT License
4 stars 0 forks source link

Expose method to list communities' edges #12

Closed AleksanderWWW closed 3 months ago

AleksanderWWW commented 3 months ago

Right now we need to use a private attribute:

g = Graph(n=1000, params=ABCDParams()).build()
communities = g._graph.communities

for community in communities:
    print(community.vertices)

This needs to be exposed as a Graph.communities property