removed graph specific functions