| prefuse.data.Edge
All known Subclasses: prefuse.data.tuple.TableEdge,
Edge | public interface Edge extends Tuple(Code) | | Tuple sub-interface that represents an edge in a graph structure. Each edge
has both a source node and a target node. For directed edges, this
distinction indicates the directionality of the edge. For undirected edges
this distinction merely reflects the underlying storage of the nodes.
author: jeffrey heer |
Method Summary | |
public Node | getAdjacentNode(Node n) Given a Node upon which this Edge is incident, the opposite incident
Node is returned. | public Graph | getGraph() Returns the graph of which this Edge is a member. | public Node | getSourceNode() Returns the first, or source, node upon which this Edge
is incident. | public Node | getTargetNode() Returns the second, or target, node upon which this Edge
is incident. | public boolean | isDirected() Indicates if this edge is directed or undirected. |
getAdjacentNode | public Node getAdjacentNode(Node n)(Code) | | Given a Node upon which this Edge is incident, the opposite incident
Node is returned. Throws an exception if the input node is not incident
on this Edge.
Parameters: n - a Node upon which this Edge is incident the other Node touched by this Edge |
getGraph | public Graph getGraph()(Code) | | Returns the graph of which this Edge is a member.
the Graph containing this Edge |
getSourceNode | public Node getSourceNode()(Code) | | Returns the first, or source, node upon which this Edge
is incident.
the source Node |
getTargetNode | public Node getTargetNode()(Code) | | Returns the second, or target, node upon which this Edge
is incident.
the source Node |
isDirected | public boolean isDirected()(Code) | | Indicates if this edge is directed or undirected.
true if directed, false if undirected. |
|
|