[Doc] Change some comments
[FEATURE] Implement the device-resilient graph (GraphD).

Split the Graph to GraphD and GraphH and make the Graph the base class.