de.grogra.graph
public interface EdgePattern
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.| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(java.lang.Object source,
java.lang.Object target,
int edges,
boolean toTarget)
Tests whether the given edge matches this pattern.
|
boolean matches(java.lang.Object source,
java.lang.Object target,
int edges,
boolean toTarget)
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 targettrue iff edge matches pattern