Main
network_from_df()
Details
Contribution guidelines
Vignettes
Additional resources
Create a network from a DataFrame.
df (DataFrame) – DataFrame containing the network data.
source_col (str) – Column name for the source nodes.
target_col (str) – Column name for the target nodes.
directed (bool) – Whether the network is directed or not.
The network.
nx.Graph or nx.DiGraph