graph cache implemented