public static boolean equalNodeEdges(List<Node> edges, List<Node> otherEdges) {
        if (edges.size() == otherEdges.size()) {
            List<ComponentId> left = edges.stream().map(Node::componentId).sorted().toList();
            List<ComponentId> right = otherEdges.stream().map(Node::componentId).sorted().toList();
            return left.equals(right);
        } else {
            return false;
        }
    }
@author Tony Vaagenes
@author gjoranv
@author ollivir
container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentRegistryNode.java