|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.webgraph.labelling.IntegerLabelFilter
public class IntegerLabelFilter
A filter for labelled graphs preserving those arcs whose integer labels are in a specified set.
Constructor Summary | |
---|---|
IntegerLabelFilter(String... keyAndvalues)
Creates a new integer-label filter. |
|
IntegerLabelFilter(String key,
int... value)
Creates a new integer-label filter. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerLabelFilter(String key, int... value)
key
- the key to be queried to filter an arc, or the empty string to query the well-known attribute.value
- a list of values that will be preserved.public IntegerLabelFilter(String... keyAndvalues)
keyAndvalues
- the key to be queried to filter an arc,
or the empty string to query the well-known attribute, followed by a list of values that will be preserved.Method Detail |
---|
public boolean accept(int i, int j, Label label)
Transform.LabelledArcFilter
(i,j)
with label label
has to be accepted or not.
accept
in interface Transform.LabelledArcFilter
i
- the source of the arc.j
- the destination of the arc.label
- the label of the arc.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |