While excluding nodes which a huge portion of the code depends on is one solution to make the graph less messy, I think an interesting alternative would be to allow certain nodes to be duplicated. If the "energy" of the system could be reduced above some threshold by duplicating a node, duplicate it and connect the edges to minimize the "energy". Alternative let me configure that these nodes can be copied N times.