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

Method __init__

euler/tools/node.py:21–30  ·  view source on GitHub ↗
(self, node_id, weight, node_type, gmeta)

Source from the content-addressed store, hash-verified

19
20class Node(object):
21 def __init__(self, node_id, weight, node_type, gmeta):
22 self.id = node_id
23 self.weight = weight
24 self.type = node_type
25 self.dense = []
26 self.sparse = []
27 self.binary = []
28 self.neighbor = []
29 self.in_neighbor = []
30 self.preprocess_feature_idx(gmeta)
31
32 def preprocess_feature_idx(self, gmeta):
33 expend_list(self.dense, gmeta.node_feature_maxnum['dense'])

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected