added graph relations to cython