public interface DirectedGraph extends 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, 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, traverseList getOutgoingEdges(Vertex v)
v - Vertex you want to determine its outgoing edges.List getIncomingEdges(Vertex v)
v - Vertex you want to determine its incoming edges.List getOutgoingAdjacentVertices(Vertex v)
v - Vertex you want to determine its outgoing adjacent vertices.List getIncomingAdjacentVertices(Vertex v)
v - Vertex you want to determine its incoming adjacent vertices.DirectedEdge getEdge(Vertex fromvertex, Vertex tovertex)
fromVertex - Vertex that is the origin of the directed EdgetoVertex - Vertex that is the destination of the directed EdgeEdgeboolean isPath(Vertex fromVertex, Vertex toVertex)
fromVertex - starting Vertex for the pathtoVertex - ending Vertex for the pathboolean isCycle(Vertex fromVertex)
fromVertex - Vertex to be tested for a cycle path.Copyright © 2019 JULIE Lab, Germany. All rights reserved.