cdlib.datasets.fetch_network_ground_truth¶
-
fetch_network_ground_truth
(net_name: str = 'karate_club', net_type: str = 'igraph') → [<class 'object'>, <class 'object'>]¶ Load the required network, along with its ground truth partition, from the remote repository.
Parameters: - net_name – network name
- net_type – desired graph object among “networkx” and “igraph”. Default, igraph.
Returns: a tuple of (graph_object, NodeClustering)
Example: >>> from cdlib import datasets >>> G, gt_coms = datasets.fetch_network_ground_truth(fetch_ground_truth_data="karate_club", net_type="igraph")