edu.uci.ics.jung.graph.impl
Class DirectedSparseEdge

java.lang.Object
  extended by edu.uci.ics.jung.utils.UserDataDelegate
      extended by edu.uci.ics.jung.graph.impl.AbstractElement
          extended by edu.uci.ics.jung.graph.impl.AbstractArchetypeEdge
              extended by edu.uci.ics.jung.graph.impl.AbstractSparseEdge
                  extended by edu.uci.ics.jung.graph.impl.DirectedSparseEdge
All Implemented Interfaces:
ArchetypeEdge, DirectedEdge, Edge, Element, UserDataContainer, Cloneable
Direct Known Subclasses:
GraphCollapser.DirectedCollapsedEdge

public class DirectedSparseEdge
extends AbstractSparseEdge
implements DirectedEdge

An implementation of DirectedEdge that resides in a directed graph.

Author:
Scott D. White, Joshua O'Madadhain, Danyel Fisher
See Also:
DirectedSparseVertex, DirectedSparseGraph

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.utils.UserDataContainer
UserDataContainer.CopyAction
 
Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseEdge
mFrom, mTo
 
Fields inherited from class edu.uci.ics.jung.graph.impl.AbstractElement
id, m_Graph
 
Fields inherited from class edu.uci.ics.jung.utils.UserDataDelegate
factory, udc_delegate
 
Constructor Summary
DirectedSparseEdge(Vertex from, Vertex to)
          Creates a directed edge whose source is from and whose destination is to.
 
Method Summary
 Vertex getDest()
          Returns the destination of this directed edge.
 Vertex getSource()
          Returns the source of this directed edge.
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseEdge
copy, getEndpoints, getIncidentVertices, getOpposite, isIncident, numVertices, toString
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractArchetypeEdge
equals, getEqualEdge, getEquivalentEdge, getIncidentElements
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractElement
addGraph_internal, getGraph, hashCode, initialize, removeGraph_internal
 
Methods inherited from class edu.uci.ics.jung.utils.UserDataDelegate
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDataFactory, setUserDatum
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.graph.Edge
getEndpoints, getOpposite
 
Methods inherited from interface edu.uci.ics.jung.graph.ArchetypeEdge
copy, getEqualEdge, getEquivalentEdge, getIncidentVertices, isIncident, numVertices
 
Methods inherited from interface edu.uci.ics.jung.graph.Element
getGraph, getIncidentElements
 
Methods inherited from interface edu.uci.ics.jung.utils.UserDataContainer
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
 

Constructor Detail

DirectedSparseEdge

public DirectedSparseEdge(Vertex from,
                          Vertex to)
Creates a directed edge whose source is from and whose destination is to.

Method Detail

getSource

public Vertex getSource()
Description copied from interface: DirectedEdge
Returns the source of this directed edge.

Specified by:
getSource in interface DirectedEdge
See Also:
DirectedEdge.getSource()

getDest

public Vertex getDest()
Description copied from interface: DirectedEdge
Returns the destination of this directed edge.

Specified by:
getDest in interface DirectedEdge
See Also:
DirectedEdge.getDest()