Class EdgeWeighter

  • public final class EdgeWeighter
    extends Object
    The EdgeWeighter class. This class is used as a container for information about how to interpret weights in an weighted layout.

    Module: layout-api

    To use this in your app, include the following dependency in your POM:


    Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Field Detail

      • minWeightCutoff

        public double minWeightCutoff
      • maxWeightCutoff

        public double maxWeightCutoff
      • defaultEdgeWeight

        public double defaultEdgeWeight
    • Constructor Detail

      • EdgeWeighter

        public EdgeWeighter()
    • Method Detail

      • setWeightAttribute

        public void setWeightAttribute​(String weightAttribute)
      • reset

        public void reset()
      • setWeightType

        public void setWeightType​(WeightTypes type)
      • setNormalizedBounds

        public void setNormalizedBounds​(double lowerBound,
                                        double upperBound)
      • setWeight

        public void setWeight​(LayoutEdge layoutEdge)
      • normalizeWeight

        public boolean normalizeWeight​(LayoutEdge edge)
      • setMaxWeightCutoff

        public void setMaxWeightCutoff​(double maxWeight)
      • setMinWeightCutoff

        public void setMinWeightCutoff​(double minWeight)