Merge branch 'main' into add-multi-worker-support

This commit is contained in:
yangdx
2025-02-25 11:15:12 +08:00
2 changed files with 6 additions and 9 deletions

View File

@@ -214,12 +214,6 @@ class NetworkXStorage(BaseGraphStorage):
"""
labels = set()
for node in self._graph.nodes():
# node_data = dict(self._graph.nodes[node])
# if "entity_type" in node_data:
# if isinstance(node_data["entity_type"], list):
# labels.update(node_data["entity_type"])
# else:
# labels.add(node_data["entity_type"])
labels.add(str(node)) # Add node id as a label
# Return sorted list