Some graphs implementations in Python