Package it.unimi.dsi.webgraph
Interface Transform.ArcFilter
- All Known Implementing Classes:
Transform.NodeClassFilter
- Enclosing class:
- Transform
public static interface Transform.ArcFilter
Provides a method to accept or reject an arc.
Note that arc filters are usually stateless. Thus, their declaration
should comprise a static singleton (e.g., Transform.NO_LOOPS
).
-
Method Summary
Modifier and Type Method Description boolean
accept(int i, int j)
Tells if the arc(i,j)
has to be accepted or not.
-
Method Details
-
accept
boolean accept(int i, int j)Tells if the arc(i,j)
has to be accepted or not.- Parameters:
i
- the source of the arc.j
- the destination of the arc.- Returns:
- if the arc has to be accepted.
-