MCPcopy Create free account
hub / github.com/alibaba/euler / read_node_label

Function read_node_label

tf_euler/python/dataset/multigraph_util.py:57–65  ·  view source on GitHub ↗
(node_label)

Source from the content-addressed store, hash-verified

55
56
57def read_node_label(node_label):
58 f = open(node_label)
59 lines = f.readlines()
60 node_labels = []
61 for line in lines:
62 label = int(line.strip())
63 node_labels.append(label)
64 f.close()
65 return node_labels
66
67
68def gen_graph_json(edge_list, indicator_list, graph_labels, node_labels):

Callers 1

convert2jsonMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected