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

Function read_graph_label

tf_euler/python/dataset/multigraph_util.py:46–54  ·  view source on GitHub ↗
(graph_label)

Source from the content-addressed store, hash-verified

44
45
46def read_graph_label(graph_label):
47 f = open(graph_label)
48 lines = f.readlines()
49 graph_labels = []
50 for line in lines:
51 label = max(int(line.strip()), 0)
52 graph_labels.append(label)
53 f.close()
54 return graph_labels
55
56
57def read_node_label(node_label):

Callers 1

convert2jsonMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected