Exploring graph data structures with python