Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

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

Open
fpmenninger opened this issue May 18, 2021 · 0 comments
Open

Comments

@fpmenninger
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant