Skip to content

Commit

Permalink
Dijkstra: update to match new error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauddri committed Feb 2, 2015
1 parent 7dc7610 commit ea220d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions algorithms/graphs/dijkstra/dijkstra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import (
func TestDijkstra(t *testing.T) {
h := graph.NewUndirected()

for i := 0; i < 4; i++ {
v := graph.VertexId(i)
h.AddVertex(v)
for i := 0; i < 5; i++ {
h.AddVertex(graph.VertexId(i))
}

h.AddEdge(graph.VertexId(0), graph.VertexId(1), 10)
Expand Down

0 comments on commit ea220d9

Please sign in to comment.