Class MatchingAlgorithm.MatchingImpl<E>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<E> edges  
      private static long serialVersionUID  
      private double weight  
    • Constructor Summary

      Constructors 
      Constructor Description
      MatchingImpl​(java.util.Set<E> edges, double weight)
      Construct a new instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<E> getEdges()
      Get the edges of the matching.
      double getWeight()
      Returns the weight of the matching.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • edges

        private java.util.Set<E> edges
      • weight

        private double weight
    • Constructor Detail

      • MatchingImpl

        public MatchingImpl​(java.util.Set<E> edges,
                            double weight)
        Construct a new instance
        Parameters:
        edges - the edges of the matching
        weight - the weight of the matching
    • Method Detail

      • getWeight

        public double getWeight()
        Returns the weight of the matching.
        Specified by:
        getWeight in interface MatchingAlgorithm.Matching<E>
        Returns:
        the weight of the matching
      • getEdges

        public java.util.Set<E> getEdges()
        Get the edges of the matching.
        Specified by:
        getEdges in interface MatchingAlgorithm.Matching<E>
        Returns:
        the edges of the matching
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object