Class Graphs.SynchronizedDirectedGraph<V,E>
java.lang.Object
edu.uci.ics.jung.graph.util.Graphs.SynchronizedAbstractGraph<V,E>
edu.uci.ics.jung.graph.util.Graphs.SynchronizedDirectedGraph<V,E>
- All Implemented Interfaces:
DirectedGraph<V,E>, Graph<V, E>, Hypergraph<V, E>, Serializable
- Direct Known Subclasses:
Graphs.SynchronizedForest
- Enclosing class:
Graphs
static class Graphs.SynchronizedDirectedGraph<V,E>
extends Graphs.SynchronizedAbstractGraph<V,E>
implements DirectedGraph<V,E>, Serializable
-
Field Summary
Fields inherited from class Graphs.SynchronizedAbstractGraph
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIfdirected_edgeis a directed edge in this graph, returns the destination; otherwise returnsnull.Ifdirected_edgeis a directed edge in this graph, returns the source; otherwise returnsnull.booleanReturnstrueifvertexis the destination ofedge.booleanReturnstrueifvertexis the source ofedge.Methods inherited from class Graphs.SynchronizedAbstractGraph
addEdge, addEdge, addEdge, addEdge, addVertex, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getEndpoints, getIncidentCount, getIncidentEdges, getIncidentVertices, getInEdges, getNeighborCount, getNeighbors, getOpposite, getOutEdges, getPredecessorCount, getPredecessors, getSuccessorCount, getSuccessors, getVertexCount, getVertices, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, removeEdge, removeVertexMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Graph
addEdge, addEdge, getEndpoints, getInEdges, getOpposite, getOutEdges, getPredecessorCount, getPredecessors, getSuccessorCount, getSuccessors, inDegree, isPredecessor, isSuccessor, outDegreeMethods inherited from interface Hypergraph
addEdge, addEdge, addVertex, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getIncidentCount, getIncidentEdges, getIncidentVertices, getNeighborCount, getNeighbors, getVertexCount, getVertices, isIncident, isNeighbor, removeEdge, removeVertex
-
Constructor Details
-
SynchronizedDirectedGraph
-
-
Method Details
-
getDest
Description copied from interface:GraphIfdirected_edgeis a directed edge in this graph, returns the destination; otherwise returnsnull. The destination of a directed edgedis defined to be the vertex incident todfor whichdis an incoming edge.directed_edgeis guaranteed to be a directed edge if itsEdgeTypeisDIRECTED.- Specified by:
getDestin interfaceGraph<V,E> - Specified by:
getDestin interfaceHypergraph<V,E> - Overrides:
getDestin classGraphs.SynchronizedAbstractGraph<V,E> - Parameters:
directed_edge- the edge whose destination is to be returned- Returns:
- the destination of
directed_edgeif it is a directed edge in this graph, ornullotherwise - See Also:
-
getSource
Description copied from interface:GraphIfdirected_edgeis a directed edge in this graph, returns the source; otherwise returnsnull. The source of a directed edgedis defined to be the vertex for whichdis an outgoing edge.directed_edgeis guaranteed to be a directed edge if itsEdgeTypeisDIRECTED.- Specified by:
getSourcein interfaceGraph<V,E> - Specified by:
getSourcein interfaceHypergraph<V,E> - Overrides:
getSourcein classGraphs.SynchronizedAbstractGraph<V,E> - Parameters:
directed_edge- the edge whose source is to be returned- Returns:
- the source of
directed_edgeif it is a directed edge in this graph, ornullotherwise - See Also:
-
isDest
Description copied from interface:GraphReturnstrueifvertexis the destination ofedge. Equivalent togetDest(edge).equals(vertex). -
isSource
Description copied from interface:GraphReturnstrueifvertexis the source ofedge. Equivalent togetSource(edge).equals(vertex).
-