Skip to content

Commit c2fb5b6

Browse files
authored
Merge pull request #16 from scheidan/patch-1
mention `get_weight` in Readme
2 parents e500596 + 1efd6e0 commit c2fb5b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ add_edge!(g, 1, 2, 0.5)
1414
add_edge!(g, 2, 3, 0.8)
1515
add_edge!(g, 1, 3, 2.0)
1616

17+
# get weight of edge from vertex 1 to vertex 2
18+
get_weight(g, 1, 2)
19+
1720
# find the shortest path from vertex 1 to vertex 3 taking weights into account.
1821
enumerate_paths(dijkstra_shortest_paths(g, 1), 3)
1922
3-element Array{Int64,1}:

0 commit comments

Comments
 (0)