Merge pull request #51 from tianhaolin1991/patch-1
Fix NetworkXStorage get_types method
This commit is contained in:
@@ -152,8 +152,8 @@ class NetworkXStorage(BaseGraphStorage):
|
||||
|
||||
for _, data in self._graph.nodes(data=True):
|
||||
if "type" in data:
|
||||
types.add(data["type"].lower())
|
||||
types_with_case.add(data["type"])
|
||||
types.add(data["entity_type"].lower())
|
||||
types_with_case.add(data["entity_type"])
|
||||
return list(types), list(types_with_case)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user