Skip to content

Commit

Permalink
fix strongly connected component vector (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
arun3688 committed Mar 2, 2022
1 parent 98a7a11 commit c906bb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OMSimulatorLib/DirectedGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c906bb0

Please sign in to comment.