networkx-social
Installation
SKILL.md
NetworkX Graph Analysis
Graph analysis, community detection, centrality measures, knowledge graphs, bipartite networks, and visualization.
Graph Creation
import networkx as nx
G = nx.Graph()
G.add_edge('Alice', 'Bob', weight=3)
G.add_edges_from([('Bob', 'Carol'), ('Carol', 'Dave'), ('Alice', 'Dave')])
D = nx.DiGraph() # directed graph
G = nx.read_edgelist('network.txt') # from edge list file
G = nx.from_pandas_edgelist(df, 'source', 'target') # from DataFrame