Class HopCountLinkWeigher

  • All Implemented Interfaces:
    EdgeWeigher<TopologyVertex,​TopologyEdge>, LinkWeigher

    public class HopCountLinkWeigher
    extends java.lang.Object
    implements LinkWeigher
    Link weight for measuring link cost as hop count with indirect links being as expensive as traversing the entire graph to assume the worst.
    • Field Detail


        public static final LinkWeigher DEFAULT_HOP_COUNT_WEIGHER
    • Constructor Detail

      • HopCountLinkWeigher

        public HopCountLinkWeigher()
        Creates a new hop-count weight.
      • HopCountLinkWeigher

        public HopCountLinkWeigher​(double indirectLinkCost)
        Creates a new hop-count weight with the specified cost of indirect links.
        indirectLinkCost - indirect link cost