Skip to content
Snippets Groups Projects
Commit f588cf86 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

DOC: more docstrings in sync_graph

parent c230baae
Branches
Tags
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51241 failed
...@@ -307,7 +307,10 @@ class SyncGraph(): ...@@ -307,7 +307,10 @@ class SyncGraph():
return None return None
def _get_new_id(self): def _get_new_id(self):
""" returns the next unused temporary ID""" """ returns the next unused temporary ID
Last review by Alexander Schlemmer on 2024-05-24.
"""
self._remote_missing_counter -= 1 self._remote_missing_counter -= 1
return self._remote_missing_counter return self._remote_missing_counter
...@@ -346,6 +349,8 @@ class SyncGraph(): ...@@ -346,6 +349,8 @@ class SyncGraph():
"""returns a set of nodes that reference the given node as identifying property or are """returns a set of nodes that reference the given node as identifying property or are
referenced by the given node and the parent of the given node is listed as referenced by the given node and the parent of the given node is listed as
"is_referenced_by" "is_referenced_by"
Last review by Alexander Schlemmer on 2024-05-24.
""" """
return (self.backward_id_references[id(node)].union( return (self.backward_id_references[id(node)].union(
self.forward_id_referenced_by[id(node)])) self.forward_id_referenced_by[id(node)]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment