Class KolmogorovWeightedPerfectMatching.DualSolution<V,​E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type
    Enclosing class:
    KolmogorovWeightedPerfectMatching<V,​E>

    public static class KolmogorovWeightedPerfectMatching.DualSolution<V,​E>
    extends Object
    A solution to the dual linear program formulated on the graph
    • Constructor Detail

      • DualSolution

        public DualSolution​(Graph<V,​E> graph,
                            Map<Set<V>,​Double> dualVariables)
        Constructs a new solution for the dual linear program
        Parameters:
        graph - the graph on which the linear program is formulated
        dualVariables - the mapping from sets of vertices of odd cardinality to their dual variables
    • Method Detail

      • getGraph

        public Graph<V,​E> getGraph()
        Returns:
        the graph on which the linear program is formulated
      • getDualVariables

        public Map<Set<V>,​Double> getDualVariables()
        The mapping from sets of vertices of odd cardinality to their dual variables, which represents a solution to the dual linear program
        Returns:
        the mapping from sets of vertices of odd cardinality to their dual variables