ignore compiled python file
comply with flake
keep track of edge index
compute G(x,y) in python