Extracted out IGraphImpl and RestAPI