subgraph border removal