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

Method add_node

tf_euler/python/dataset/fb15k.py:63–69  ·  view source on GitHub ↗
(id, type, weight)

Source from the content-addressed store, hash-verified

61
62 def convert2json(self, convert_dir, out_dir):
63 def add_node(id, type, weight):
64 node_buf = {}
65 node_buf["id"] = id
66 node_buf["type"] = type
67 node_buf["weight"] = weight
68 node_buf["features"] = []
69 return node_buf
70
71 def add_edge(src, dst, id, type, weight):
72 edge_buf = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected