Java Graph APIs definition