Removing subgraphs exceeding timeout