Interface StringGraph

    • Method Detail

      • create

        static StringGraph create​(IntGraph graph,
                                  String[] sortedArray)
        Create a graph from the passed bit set graph, and a pre-sorted array of unique strings where integer nodes in the passed graph correspond to offsets within the array. The array must be sorted, not have duplicates, and have a matching number of elements for the unique node ids in the tree. If assertions are on, asserts will check that these invariants hold.
        Parameters:
        graph - A graph
        sortedArray - An array of strings matching the requirements stated above
        Returns:
        A graph of strings which wraps the original graph