We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 372866a commit 360ab04Copy full SHA for 360ab04
pyrdf2vec/graphs/kg.py
@@ -374,9 +374,7 @@ def is_exist(self, entities: Entities) -> bool:
374
responses = [self.connector.fetch(query) for query in queries]
375
responses = [res["boolean"] for res in responses]
376
return False not in responses
377
- return not all(
378
- [Vertex(entity) in self._vertices for entity in entities]
379
- )
+ return all([Vertex(entity) in self._vertices for entity in entities])
380
381
def remove_edge(self, v1: Vertex, v2: Vertex) -> bool:
382
"""Removes the edge (v1 -> v2) if present.
0 commit comments