fixed drawing order for edges/nodes in kruskals