Skip to content

Commit

Permalink
rebase and safe loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lypoluz committed Apr 3, 2024
1 parent 9e13ba1 commit ea5557b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ogdf/basic/graph_generators/operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ void complement(Graph& G, bool directional, bool allow_self_loops) {
NodeSet<true> n1neighbors(G);
EdgeSet<true> newEdges(G);

for (node n1 : G.nodes) {
safeForEach(G.nodes, [&](node n1) {
// deleting edges
safeForEach(n1->adjEntries, [&](adjEntry adj) {
if (n1->adjEntries.size() <= 0) {
Expand Down Expand Up @@ -291,7 +291,7 @@ void complement(Graph& G, bool directional, bool allow_self_loops) {
newEdges.insert(newEdge);
}
n1neighbors.clear();
}
});
}

void intersection(Graph& G1, const Graph& G2, const NodeArray<node>& nodeMap) {
Expand Down

0 comments on commit ea5557b

Please sign in to comment.