Eliminate redundant drawing of nodes and edges.