net.xqhs.graphs.pattern
Class EdgeP
java.lang.Object
net.xqhs.graphs.representation.AbstractVisualizableGraphComponent
net.xqhs.graphs.graph.SimpleEdge
net.xqhs.graphs.pattern.EdgeP
- All Implemented Interfaces:
- Edge, GraphComponent, VisualizableGraphComponent
public class EdgeP
- extends SimpleEdge
The EdgeP
is an edge that is part of a GraphPattern
and may be generic (used in graph matching to one
or a series of more edges).
Currently, the generic aspect is not implemented. //FIXME Implement the generic aspect for edges.
- Author:
- Andrei Olaru
Field Summary |
(package private) boolean |
generic
Indicates that the edge is generic. |
Constructor Summary |
EdgeP(NodeP fromNode,
NodeP toNode,
java.lang.String edgeLabel)
A constructor that replicates the one in SimpleEdge . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
generic
boolean generic
- Indicates that the edge is generic.
EdgeP
public EdgeP(NodeP fromNode,
NodeP toNode,
java.lang.String edgeLabel)
- A constructor that replicates the one in
SimpleEdge
.
- Parameters:
fromNode
- : the source Node
; the edge is added to the node's outEdges listtoNode
- : the destination Node
; the edge is added to the node's inEdges listedgeLabel
- : the label of the edge
isGeneric
public boolean isGeneric()
- Returns:
true
if the edge is generic.