Skip to content

Commit a3c1fb6

Browse files
remove unused is_root_node function
1 parent b5a653c commit a3c1fb6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bayesflow/experimental/graphical_simulator/graphical_simulator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ def sorted_ancestors(graph, node):
181181
return [n for n in nx.topological_sort(graph) if n in nx.ancestors(graph, node)]
182182

183183

184-
def is_root_node(graph, node):
185-
return len(list(graph.predecessors(node))) == 0
186-
187-
188184
def merge_lists_of_dicts(nested_list: list[list[dict]]) -> list[dict]:
189185
"""
190186
Merges all combinations of dictionaries from a list of lists.

0 commit comments

Comments
 (0)