google-research / python-graphs

A static analysis library for computing graph representations of Python programs suitable for use with graph neural networks.
Apache License 2.0
325 stars 39 forks source link

Can you provide a quick start example? #10

Closed LukeWood closed 1 year ago

LukeWood commented 1 year ago

Super cool project! Love the idea and think it has a lot of potential.

it would be awesome to have an examples/ directory containing some sample usages - maybe even just plotting the graphs with networkX and matplotlib.

aaeagal commented 1 year ago

I agree!

dbieber commented 1 year ago

To start you off check out the existing examples directory: https://github.com/google-research/python-graphs/tree/main/python_graphs/examples

LukeWood commented 1 year ago

any reason to have examples nested under the library itself? typically they exist at the top level

dbieber commented 1 year ago

Nope. Moving them to the top level will be an improvement 👍

dbieber commented 1 year ago

I've moved the examples directory to the top level.