public class DirectedGraphDelegator extends GraphDelegator implements DirectedGraph
| Modifier | Constructor and Description |
|---|---|
protected |
DirectedGraphDelegator(DirectedGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
protected DirectedGraph |
getDirectedGraph() |
DirectedEdge |
getEdge(Vertex fromvertex,
Vertex tovertex)
Returns an Edge in the Graph whose origin is fromVertex and destination is toVertex.
|
List |
getIncomingAdjacentVertices(Vertex v)
Returns the vertices that are adjacent to a specified Vertex
where the Edge is incoming from the specified Vertex to the adjacent vertex.
|
List |
getIncomingEdges(Vertex v)
Returns the incoming edges of a particular Vertex in the Graph.
|
List |
getOutgoingAdjacentVertices(Vertex v)
Returns the vertices that are adjacent to a specified Vertex
where the Edge is outgoing from the specified Vertex to the adjacent vertex.
|
List |
getOutgoingEdges(Vertex v)
Returns the outgoing edges of a particular Vertex in the Graph.
|
boolean |
isCycle(Vertex fromvertex)
Determines if there is a cycle from Vertex fromVertex.
|
boolean |
isPath(Vertex fromvertex,
Vertex tovertex)
Determines if there is a path from Vertex fromVertex to Vertex toVertex.
|
add, addEdge, addEdge, addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraph, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, remove, removeEdge, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, traverseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addEdge, addEdge, addGraphAddEdgeListener, addGraphAddVertexListener, addGraphRemoveEdgeListener, addGraphRemoveVertexListener, addListener, cloneVertices, getAdjacentVertices, getAdjacentVertices, getConnectedSet, getConnectedSet, getDegree, getDegree, getEdges, getEdgesCount, getEdgeSet, getGraphFactory, getTraversal, getVertexSet, getVertices, getVerticesCount, getVerticesIterator, isConnected, remove, removeEdge, removeEdges, removeGraphAddEdgeListener, removeGraphAddVertexListener, removeGraphRemoveEdgeListener, removeGraphRemoveVertexListener, removeListener, setGraphFactory, setTraversal, traverseprotected DirectedGraphDelegator(DirectedGraph graph)
protected final DirectedGraph getDirectedGraph()
public List getOutgoingEdges(Vertex v)
DirectedGraphgetOutgoingEdges in interface DirectedGraphv - Vertex you want to determine its outgoing edges.public List getIncomingEdges(Vertex v)
DirectedGraphgetIncomingEdges in interface DirectedGraphv - Vertex you want to determine its incoming edges.public List getOutgoingAdjacentVertices(Vertex v)
DirectedGraphgetOutgoingAdjacentVertices in interface DirectedGraphv - Vertex you want to determine its outgoing adjacent vertices.public List getIncomingAdjacentVertices(Vertex v)
DirectedGraphgetIncomingAdjacentVertices in interface DirectedGraphv - Vertex you want to determine its incoming adjacent vertices.public DirectedEdge getEdge(Vertex fromvertex, Vertex tovertex)
DirectedGraphgetEdge in interface DirectedGraphEdgepublic boolean isPath(Vertex fromvertex, Vertex tovertex)
DirectedGraphisPath in interface DirectedGraphfromvertex - starting Vertex for the pathtovertex - ending Vertex for the pathpublic boolean isCycle(Vertex fromvertex)
DirectedGraphisCycle in interface DirectedGraphfromvertex - Vertex to be tested for a cycle path.Copyright © 2019 JULIE Lab, Germany. All rights reserved.