Class Transform.LowerBound

java.lang.Object
it.unimi.dsi.big.webgraph.Transform.LowerBound
All Implemented Interfaces:
Transform.LabelledArcFilter
Enclosing class:
Transform

public static final class Transform.LowerBound
extends Object
implements Transform.LabelledArcFilter
An arc filter that rejects arcs whose well-known attribute has a value smaller than a given threshold.
  • Constructor Details

    • LowerBound

      public LowerBound​(int lowerBound)
    • LowerBound

      public LowerBound​(String lowerBound)
  • Method Details

    • accept

      public boolean accept​(long i, long j, Label label)
      Returns true if the integer value associated to the well-known attribute of the label is larger than the threshold.
      Specified by:
      accept in interface Transform.LabelledArcFilter
      Parameters:
      i - the source of the arc.
      j - the destination of the arc.
      label - the label of the arc.
      Returns:
      true if label.Label.getInt() is larger than the threshold.