MCPcopy Create free account
hub / github.com/Tencent/embedx / total_edge_num

Method total_edge_num

demo/data/scripts/embedx_graph.py:103–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 return self.adj_list[node_id]
102
103 def total_edge_num(self):
104 edge_num = 0
105 for neighbors in self.adj_list.values():
106 edge_num += len(neighbors)
107 return edge_num
108
109 @classmethod
110 def get_neighbor_str(cls, src_id, neighbor):

Callers 1

statisticsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected