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

Function read_graph_indicator

tf_euler/python/dataset/multigraph_util.py:35–43  ·  view source on GitHub ↗
(graph_indicator)

Source from the content-addressed store, hash-verified

33
34
35def read_graph_indicator(graph_indicator):
36 f = open(graph_indicator)
37 lines = f.readlines()
38 indicator_list = []
39 for line in lines:
40 one_indicator = int(line.strip()) - 1
41 indicator_list.append(one_indicator)
42 f.close()
43 return indicator_list
44
45
46def read_graph_label(graph_label):

Callers 1

convert2jsonMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected