Class NodeComparator

    • Constructor Detail

      • NodeComparator

        public NodeComparator()
    • Method Detail

      • getSortedNodes

        public static Collection<Node> getSortedNodes​(Collection<Node> unsortedNodes)
        Take the given nodes and return them as sorted collection.
        Parameters:
        unsortedNodes - The unsorted collection of nodes.
        Returns:
        A sorted collection of the nodes.