remove some disconnected graph from the datapath graph