Package it.unimi.dsi.big.webgraph
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 java.lang.Object implements Transform.LabelledArcFilter
An arc filter that rejects arcs whose well-known attribute has a value smaller than a given threshold.
-
-
Constructor Summary
Constructors Constructor Description LowerBound(int lowerBound)
LowerBound(java.lang.String lowerBound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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 interfaceTransform.LabelledArcFilter
- Parameters:
i
- the source of the arc.j
- the destination of the arc.label
- the label of the arc.- Returns:
- true if
label.
is larger than the threshold.Label.getInt()
-
-