Skip to content
Snippets Groups Projects
Commit ac94dfd3 authored by David Rosca's avatar David Rosca
Browse files

AdjacencyListDirectedGraph: Fix adding edges

parent e0fee60f
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,8 @@ void AdjacencyListDirectedGraph::addEdge(const DirectedEdge &edge)
}
 
edges.insert(edge);
adj[edge.getFromNode()].insert(edge.getToNode());
}
 
void AdjacencyListDirectedGraph::removeEdge(const DirectedEdge &edge)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment