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

Method __init__

demo/data/scripts/embedx_graph.py:130–133  ·  view source on GitHub ↗
(self, nx_graph)

Source from the content-addressed store, hash-verified

128class EmbedxGraph:
129
130 def __init__(self, nx_graph):
131 self.data = json_graph.node_link_data(nx_graph)
132 self.context = Context(json_graph.node_link_graph(self.data))
133 self.has_feature = self.__has_feature()
134
135 def next_node(self):
136 assert "nodes" in self.data

Callers

nothing calls this directly

Calls 2

__has_featureMethod · 0.95
ContextClass · 0.70

Tested by

no test coverage detected