Skip to content

Commit e7cc343

Browse files
committed
fixed networkx issue
1 parent 7ddfd45 commit e7cc343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphzoom/scoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def lr(dataset_dir, data_dir, dataset):
1818
G = json_graph.node_link_graph(json.load(open(dataset_dir + "/{}-G.json".format(dataset))))
1919
labels = json.load(open(dataset_dir + "/{}-class_map.json".format(dataset)))
2020

21-
train_ids = [n for n in G.nodes() if not G.node[n]['val'] and not G.node[n]['test']]
22-
test_ids = [n for n in G.nodes() if G.node[n]['test']]
21+
train_ids = [n for n in G.nodes() if not G.nodes[n]['val'] and not G.nodes[n]['test']]
22+
test_ids = [n for n in G.nodes() if G.nodes[n]['test']]
2323
test_ids = test_ids[:1000]
2424
train_labels = [labels[str(i)] for i in train_ids]
2525
test_labels = [labels[str(i)] for i in test_ids]

0 commit comments

Comments
 (0)