it.unimi.dsi.webgraph
Interface Transform.LabelledArcFilter

All Known Implementing Classes:
IntegerLabelFilter, Transform.LowerBound, Transform.NodeClassFilter
Enclosing class:
Transform

public static interface Transform.LabelledArcFilter

Provides a method to accept or reject a labelled arc.

Note that arc filters are usually stateless. Thus, their declaration should comprise a static singleton (e.g., Transform.NO_LOOPS).


Method Summary
 boolean accept(int i, int j, Label label)
          Tells if the arc (i,j) with label label has to be accepted or not.
 

Method Detail

accept

boolean accept(int i,
               int j,
               Label label)
Tells if the arc (i,j) with label label has to be accepted or not.

Parameters:
i - the source of the arc.
j - the destination of the arc.
label - the label of the arc.
Returns:
if the arc has to be accepted.