cdlib.datasets.fetch_network_data

fetch_network_data(net_name: str = 'karate_club', net_type: str = 'igraph') → object

Load the required network from the remote repository

Parameters:
  • net_name – network name
  • net_type – desired graph object among “networkx” and “igraph”. Default, igraph.
Returns:

a graph object

Example:
>>> from cdlib import datasets
>>> G = datasets.fetch_network_data(net_name="karate_club", net_type="igraph")