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.
 

Method Detail

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 edge
target - the target node of the edge
edges - the edge bits of the edge
toTarget - true iff the edge is traversed from source to target
Returns:
true iff edge matches pattern