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

Method add_node

tf_euler/python/dataset/fb15k237.py:62–68  ·  view source on GitHub ↗
(id, type, weight)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected