it.unimi.dsi.webgraph
Class Transform.LowerBound

java.lang.Object
  extended by it.unimi.dsi.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 Summary
Transform.LowerBound(int lowerBound)
           
Transform.LowerBound(String lowerBound)
           
 
Method Summary
 boolean accept(int i, int j, Label label)
          Returns true if the integer value associated to the well-known attribute of the label is larger than the threshold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transform.LowerBound

public Transform.LowerBound(int lowerBound)

Transform.LowerBound

public Transform.LowerBound(String lowerBound)
Method Detail

accept

public boolean accept(int i,
                      int 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.