Package org.jruby.dirgra
Class Vertex<T extends ExplicitVertexID>
java.lang.Object
org.jruby.dirgra.Vertex<T>
- All Implemented Interfaces:
Comparable<Vertex<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
protected void
addIncomingEdge
(Edge<T> newEdge) protected void
addOutgoingEdge
(Edge<T> newEdge) int
getData()
int
getID()
getIncomingEdgeOfType
(Object type) Collection<Edge<T>>
getIncomingEdgesOfType
(Object type) getOutgoingEdgeOfType
(Object type) Collection<Edge<T>>
getOutgoingEdgesOfType
(Object type) int
inDegree()
int
void
void
void
boolean
removeEdgeTo
(Vertex destination) protected void
removeIncomingEdge
(Edge<T> edge) protected void
removeOutgoingEdge
(Edge<T> edge) toString()
-
Constructor Details
-
Vertex
-
-
Method Details
-
addEdgeTo
-
addEdgeTo
-
addEdgeTo
-
addEdgeTo
-
removeEdgeTo
-
addOutgoingEdge
-
addIncomingEdge
-
removeOutgoingEdge
-
removeIncomingEdge
-
removeAllIncomingEdges
public void removeAllIncomingEdges() -
removeAllOutgoingEdges
public void removeAllOutgoingEdges() -
removeAllEdges
public void removeAllEdges() -
inDegree
public int inDegree() -
outDegree
public int outDegree() -
getIncomingEdgesOfType
-
getIncomingEdgesNotOfType
-
getOutgoingEdgesOfType
-
getIncomingSourceData
-
getIncomingSourceDataOfType
-
getIncomingSourcesData
-
getIncomingSourcesDataOfType
-
getIncomingSourcesDataNotOfType
-
getOutgoingEdgesNotOfType
-
getOutgoingDestinationsData
-
getOutgoingDestinationsDataOfType
-
getOutgoingDestinationsDataNotOfType
-
getOutgoingDestinationData
-
getOutgoingDestinationDataOfType
-
getIncomingEdgeOfType
-
getOutgoingEdgeOfType
-
getIncomingEdge
-
getOutgoingEdge
-
getIncomingEdges
-
getOutgoingEdges
-
getData
-
getID
public int getID() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends ExplicitVertexID>
-