add graph methods