From c85570db22e19aad9a6ce5e6157aae743697c920 Mon Sep 17 00:00:00 2001 From: Anne-Liza <a.m.r.m.bruggeman@student.tudelft.nl> Date: Mon, 27 Nov 2017 13:00:15 +0100 Subject: [PATCH] Small bug fix in checks of sort_non_coupled_nodes() Former-commit-id: bf551ed627e53299f7e10400ab4681ed063696cd --- kadmos/graph/graph_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kadmos/graph/graph_data.py b/kadmos/graph/graph_data.py index 84a681946..ba0ecd422 100644 --- a/kadmos/graph/graph_data.py +++ b/kadmos/graph/graph_data.py @@ -491,11 +491,11 @@ class DataGraph(KadmosGraph): for func in nodes: assert func in self, "Function node {} must be present in graph.".format(func) subgraph = self.get_subgraph_by_function_nodes(nodes) + subgraph = subgraph.get_function_graph() assert nx.is_directed_acyclic_graph(subgraph) # Make sure the nodes are in a topological sort - if self.check_for_coupling(nodes, only_feedback=True): - nodes = nx.topological_sort(subgraph) + nodes = nx.topological_sort(subgraph) nodes_to_sort = list(nodes) sorted_nodes = [] -- GitLab