public abstract class AbstractEdge extends Object implements Edge
Constructor and Description |
---|
AbstractEdge(Node source,
Node target,
Graph graph)
Edges should know their source and target nodes, and their graph.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Does nothing yet.
|
boolean |
equals(Object obj) |
Graph |
getGraph()
Every graph object should have an owner graph.
|
String |
getKey()
This method is used for storing the object in a Map.
|
int |
getSign()
Edges are positive by default.
|
Node |
getSourceNode() |
Node |
getTargetNode() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isTranscription
public AbstractEdge(Node source, Node target, Graph graph)
source
- source nodetarget
- target nodegraph
- graphpublic Node getTargetNode()
getTargetNode
in interface Edge
public Node getSourceNode()
getSourceNode
in interface Edge
public Graph getGraph()
GraphObject
getGraph
in interface GraphObject
public String getKey()
GraphObject
getKey
in interface GraphObject
public int getSign()
public void clear()
clear
in interface GraphObject
Copyright © 2015 BioPAX. All rights reserved.