T
- the type of the data the vertex storespublic abstract class DirectedVertex<T> extends Vertex<T>
Modifier and Type | Method and Description |
---|---|
java.util.Set<DirectedVertex<T>> |
getAdjacentVertices()
Gets all the vertices adjacent to this one.
|
java.util.Set<DirectedEdge<T>> |
getEdges()
Gets all the edges connected to this vertex.
|
java.util.Set<DirectedVertex<T>> |
getIncomingAdjacentVertices()
Gets all the vertices which have edges to this vertex
|
java.util.Set<DirectedEdge<T>> |
getIncomingEdges()
Gets all the edges which go to this vertex
|
java.util.Set<DirectedVertex<T>> |
getOutgoingAdjacentVertices()
Gets all the vertices that this has an edge to
|
java.util.Set<DirectedEdge<T>> |
getOutgoingEdges()
Gets all the edges which leave from this vertex
|
void |
removeAllEdges()
Removes all the edges connected to this vertex from the graph
|
void |
removeAllIncomingEdges()
Deletes all edges which go into this vertex from the graph
|
void |
removeAllOutgoingEdges()
Deletes all edges which come out of the vertex from the graph
|
void |
removeFromGraph()
Removes this component from the graph it is a part of.
|
fromGraph, fromSameGraphAs
public java.util.Set<DirectedVertex<T>> getAdjacentVertices()
Vertex
getAdjacentVertices
in class Vertex<T>
public java.util.Set<DirectedEdge<T>> getEdges()
Vertex
public java.util.Set<DirectedVertex<T>> getIncomingAdjacentVertices()
public java.util.Set<DirectedEdge<T>> getIncomingEdges()
public java.util.Set<DirectedVertex<T>> getOutgoingAdjacentVertices()
public java.util.Set<DirectedEdge<T>> getOutgoingEdges()
public void removeAllEdges()
Vertex
removeAllEdges
in class Vertex<T>
public void removeAllIncomingEdges()
public void removeAllOutgoingEdges()
public void removeFromGraph()
GraphComponent
removeFromGraph
in class GraphComponent