infoTensorIndicesTo = Arrays.copyOf(infoTensorIndicesTo, infoTensorIndicesTo.length - shift); int[] components = GraphUtils.calculateConnectedComponents(infoTensorIndicesFrom, infoTensorIndicesTo, data.length); componentCount = components[components.length - 1]; this.components = Arrays.copyOfRange(components, 0, components.length - 1);
int[] components = GraphUtils.calculateConnectedComponents( infoToTensorIndices(upperInfo), infoToTensorIndices(lowerInfo), data.length + 1);