Add graph methods