Skip to content

Commit

Permalink
Updated to latest version of DirectedGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
orlarey committed Jan 20, 2025
1 parent f20c15a commit 7e037b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/DirectedGraph/DirectedGraphAlgorythm.hh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Tarjan {
explicit Tarjan(const digraph<N>& g) : fGraph(g)
{
for (const auto& n : fGraph.nodes()) {
if (!fAux.contains(n)) {
if (fAux.find(n) == fAux.end()) {
visit(n);
}
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/DirectedGraph/Schedule.hh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ inline schedule<N> dfschedule(const digraph<N>& G)

// recursive deep first visit (pseudo local function using a lambda)
std::function<void(const N&)> dfvisit = [&](const N& n) {
if (!V.contains(n)) {
if (V.find(n) == V.end()) {
V.insert(n);
for (const auto& p : G.destinations(n)) {
dfvisit(p.first);
Expand Down

0 comments on commit 7e037b6

Please sign in to comment.