From c906bb05bea8b67939eaa63679b9384ab0d2c973 Mon Sep 17 00:00:00 2001 From: arun3688 Date: Wed, 2 Mar 2022 21:24:14 +0100 Subject: [PATCH] fix strongly connected component vector (#1129) --- src/OMSimulatorLib/DirectedGraph.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OMSimulatorLib/DirectedGraph.cpp b/src/OMSimulatorLib/DirectedGraph.cpp index aa8e38914..225647473 100644 --- a/src/OMSimulatorLib/DirectedGraph.cpp +++ b/src/OMSimulatorLib/DirectedGraph.cpp @@ -275,10 +275,11 @@ void oms::DirectedGraph::calculateSortedConnections() } } - this->component_names.push_back(component_names_local); - if (SCC.size() > 0) + { sortedConnections.push_back(SCC); + this->component_names.push_back(component_names_local); + } if (SCC.size() > 1) {