Skip to content

Commit 1efd6e0

Browse files
authored
mention get_weight in Readme
To address #13.
1 parent e500596 commit 1efd6e0

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)