sbromberger / SimpleWeightedGraphs.jl

Simple weighted graphs. Requires LightGraphs.jl.
Other
49 stars 22 forks source link

updating docs: get_weight(graph, src, dst) returns weight of an edge #71

Open fpmenninger opened 3 years ago

fpmenninger commented 3 years ago

discovered that one can access the weight of an edge:

g = SimpleWeightedGraph(3)  # or use `SimpleWeightedDiGraph` for directed graphs
add_edge!(g, 1, 2, 0.5)
get_weight(g, 1, 2)
0.5

could this be added to the docs, please?