Package com.jgalgo

Interface MinimumSpanningTree.Result

    • Method Detail

      • edges

        IntCollection edges()
        Get all the edges that form the spanning tree.
        Returns:
        a collection of the MST edges.
      • weight

        double weight​(WeightFunction w)
        Get the MST weight with respect to a weight function
        Parameters:
        w - a weight function
        Returns:
        the sum of the tree edges weights