petgraph / petgraph

Graph data structure library for Rust.
https://docs.rs/petgraph/
Apache License 2.0
2.84k stars 331 forks source link

Improve petgraph docs for new users #584

Open JosiahParry opened 1 year ago

JosiahParry commented 1 year ago

Summary

I'm trying to pickup petgraph for spatial statistics however I'm finding it hard to get going due to a lack of examples. It would be great if there were more worked examples and documentation on getting started and the intended use patterns for the library.

Motivation

Adding this eases adoption.

Details

No code needs to change. Additional doc in the source files would be needed.

No.

Yes, if provided with guidance.

highway900 commented 5 months ago

Reading the tests is a good way to better understand the crate. Though I do agree there is a need for clear examples. Some examples of what you would like to see might help :)