de.grogra.graph
Interface EdgePattern
- All Known Implementing Classes:
- EdgePatternImpl
public interface EdgePattern
An EdgePattern
is a boolean
function which
can be applied to edges in the context of graph traversal.
It is used as a pattern to filter the edges which shall be traversed.
- Author:
- Ole Kniemeyer
Method Summary |
boolean |
matches(java.lang.Object source,
java.lang.Object target,
int edges,
boolean toTarget)
Tests whether the given edge matches this pattern. |
matches
boolean matches(java.lang.Object source,
java.lang.Object target,
int edges,
boolean toTarget)
- Tests whether the given edge matches this pattern.
- Parameters:
source
- the source node of the edgetarget
- the target node of the edgeedges
- the edge bits of the edgetoTarget
- true
iff the edge is traversed
from source
to target
- Returns:
true
iff edge matches pattern