split graph if the main graph contains non connected subgraphes