Skip to content

Commit

Permalink
2022-10-31T17-07-48Z
Browse files Browse the repository at this point in the history
  • Loading branch information
tddschn committed Oct 31, 2022
1 parent 829ddda commit c1c4b35
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion get_graph_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def main() -> None:

gi_d = json.loads(graph_info_json_path.read_text())
for sampled_graph_dataset_name in sampled_graph_dataset_names:
gi_d[sampled_graph_dataset_name] = get_graph_info(
gi_d[f'{sampled_graph_dataset_name}_sampled'] = get_graph_info(
getattr(dataset_loaders_sampled, f'load_{sampled_graph_dataset_name}')()
)
graph_info_json_path.write_text(json.dumps(gi_d, indent=4))
Expand Down
48 changes: 48 additions & 0 deletions graph_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,53 @@
"average_degree": 10.0046,
"density": 0.0010005600560056005,
"type": "easygraph.classes.graph.Graph"
},
"enron_sampled": {
"nodes": 9301,
"edges": 79905,
"is_directed": false,
"average_degree": 17.182023438339964,
"density": 0.001847529401972039,
"type": "networkx.classes.graph.Graph"
},
"pgp_undirected_sampled": {
"nodes": 8781,
"edges": 51939,
"is_directed": false,
"average_degree": 11.829859924837718,
"density": 0.0013473644561318586,
"type": "networkx.classes.graph.Graph"
},
"pgp_sampled": {
"nodes": 6465,
"edges": 18906,
"is_directed": true,
"average_degree": 5.848723897911833,
"density": 0.00045240747972709105,
"type": "networkx.classes.digraph.DiGraph"
},
"road_sampled": {
"nodes": 2075,
"edges": 1132,
"is_directed": false,
"average_degree": 1.0910843373493977,
"density": 0.0005260773082687548,
"type": "networkx.classes.graph.Graph"
},
"amazon_sampled": {
"nodes": 262111,
"edges": 1234877,
"is_directed": true,
"average_degree": 9.42254998836371,
"density": 1.7974419114806206e-05,
"type": "networkx.classes.digraph.DiGraph"
},
"coauthorship_sampled": {
"nodes": 4340,
"edges": 6398,
"is_directed": false,
"average_degree": 2.9483870967741934,
"density": 0.0006795084343798557,
"type": "networkx.classes.graph.Graph"
}
}

0 comments on commit c1c4b35

Please sign in to comment.