graph: removed some old code