In Python,
is there some standard way of defining/treating/dealing with graphs?
>>58285930
import answer.pyimport graph.py
>>58285956
Sounds cool, is there some canonical tutorial for it?
Googled around more and decided to look into "networkX".
http://networkx.github.io/
For small things I've just been using dicts to represent adjacency lists
Define your own node class. It has a list of connected nodes and a value.
Not only is it exactly like all other programming languages in existence, but you could have found it in 5 seconds:
https://www.python.org/doc/essays/graphs/
>>58285930
>is there some standard way of defining/treating/dealing with graphs?
Graphs can be represented with matrices, nigger.
I've used networkx for finding paths in graphs.