de.grogra.graph
public class EdgePatternImpl extends java.lang.Object implements EdgePattern
| Modifier and Type | Field and Description |
|---|---|
static EdgePatternImpl |
FORWARD |
static EdgePatternImpl |
TREE |
| Constructor and Description |
|---|
EdgePatternImpl(int presentMask,
int notPresentMask,
boolean checkDirection,
boolean toTarget) |
| 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.
|
public static final EdgePatternImpl FORWARD
public static final EdgePatternImpl TREE
public EdgePatternImpl(int presentMask,
int notPresentMask,
boolean checkDirection,
boolean toTarget)
public boolean matches(java.lang.Object source,
java.lang.Object target,
int edges,
boolean toTarget)
EdgePatternmatches in interface EdgePatternsource - 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