Class GraphOrdering.GeneralVertexDegreeComparator<V2>

  • All Implemented Interfaces:
    java.util.Comparator<V2>
    Enclosing class:
    GraphOrdering<V,​E>

    private static class GraphOrdering.GeneralVertexDegreeComparator<V2>
    extends java.lang.Object
    implements java.util.Comparator<V2>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Graph<V2,​?> graph  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(V2 v1, V2 v2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • graph

        private Graph<V2,​?> graph
    • Constructor Detail

      • GeneralVertexDegreeComparator

        GeneralVertexDegreeComparator​(Graph<V2,​?> graph)
    • Method Detail

      • compare

        public int compare​(V2 v1,
                           V2 v2)
        Specified by:
        compare in interface java.util.Comparator<V2>