libnetworkit

Large-scale network analysis toolkit with graph algorithms

brewmacoslinux
Try with needOr install directly
Source

About

NetworKit is an OS-toolkit for large-scale network analysis

Commands

networkit

Examples

Analyze a network graph and compute basic statistics$ python3 -c "import networkit as nk; G = nk.readGraph('graph.edgelist', nk.Format.EdgeListTabZero); print(f'Nodes: {G.numberOfNodes()}, Edges: {G.numberOfEdges()}')"
Detect communities in a network using modularity optimization$ python3 -c "import networkit as nk; G = nk.readGraph('graph.edgelist', nk.Format.EdgeListTabZero); comm = nk.community.Louvain().run(G); print(f'Communities found: {comm.numberOfCommunities()}')"
Calculate centrality measures for network nodes$ python3 -c "import networkit as nk; G = nk.readGraph('graph.edgelist', nk.Format.EdgeListTabZero); bc = nk.centrality.Betweenness().run(G); print('Betweenness centrality computed')"