public class TableEdge extends TableTuple implements Edge
| Modifier and Type | Field and Description |
|---|---|
protected Graph |
m_graph
The backing graph.
|
m_row, m_table| Constructor and Description |
|---|
TableEdge() |
| Modifier and Type | Method and Description |
|---|---|
Node |
getAdjacentNode(Node n)
Given a Node upon which this Edge is incident, the opposite incident
Node is returned.
|
Graph |
getGraph()
Returns the graph of which this Edge is a member.
|
Node |
getSourceNode()
Returns the first, or source, node upon which this Edge
is incident.
|
Node |
getTargetNode()
Returns the second, or target, node upon which this Edge
is incident.
|
protected void |
init(Table table,
Graph graph,
int row)
Initialize a new Edge backed by an edge table.
|
boolean |
isDirected()
Indicates if this edge is directed or undirected.
|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setStringprotected Graph m_graph
protected void init(Table table, Graph graph, int row)
init in class TableTupletable - the edge Tablegraph - the backing Graphrow - the row in the edge table to which this Node instance
corresponds.public Graph getGraph()
EdgegetGraph in interface EdgeEdge.getGraph()public boolean isDirected()
EdgeisDirected in interface EdgeEdge.isDirected()public Node getSourceNode()
EdgegetSourceNode in interface EdgeEdge.getSourceNode()public Node getTargetNode()
EdgegetTargetNode in interface EdgeEdge.getTargetNode()public Node getAdjacentNode(Node n)
EdgegetAdjacentNode in interface Edgen - a Node upon which this Edge is incidentEdge.getAdjacentNode(prefuse.data.Node)