Light-weight graph structure in python.