public class DirectedGraphImpl extends GraphImpl implements DirectedGraph
| Constructor and Description |
|---|
DirectedGraphImpl()
Creates a new instance of an empty directed Graph.
|
| Modifier and Type | Method and Description |
|---|---|
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, containsEdge, containsVertex, forgetConnectedSets, 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, toString, traverseclone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, traversepublic DirectedGraphImpl()
public List getOutgoingEdges(Vertex v)
getOutgoingEdges in interface DirectedGraphv - Vertex you want to determine its outgoing edges.public List getIncomingEdges(Vertex v)
getIncomingEdges in interface DirectedGraphv - Vertex you want to determine its incoming edges.public List getOutgoingAdjacentVertices(Vertex v)
getOutgoingAdjacentVertices in interface DirectedGraphv - Vertex you want to determine its outgoing adjacent vertices.public List getIncomingAdjacentVertices(Vertex v)
getIncomingAdjacentVertices in interface DirectedGraphv - Vertex you want to determine its incoming adjacent vertices.public DirectedEdge getEdge(Vertex fromvertex, Vertex tovertex)
getEdge in interface DirectedGraphfromVertex - Vertex that is the origin of the directed EdgetoVertex - Vertex that is the destination of the directed EdgeEdgepublic boolean isPath(Vertex fromVertex, Vertex toVertex)
isPath in interface DirectedGraphfromVertex - starting Vertex for the pathtoVertex - ending Vertex for the pathpublic boolean isCycle(Vertex fromVertex)
isCycle in interface DirectedGraphfromVertex - Vertex to be tested for a cycle path.Copyright © 2019 JULIE Lab, Germany. All rights reserved.