Class Vertex<T extends ExplicitVertexID>
java.lang.Object
org.jruby.dirgra.Vertex<T>
- All Implemented Interfaces:
Comparable<Vertex<T>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Tprivate static final Edge[]private DirectedGraph(package private) intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidprotected voidaddIncomingEdge(Edge<T> newEdge) protected voidaddOutgoingEdge(Edge<T> newEdge) intgetData()getFirstEdge(Iterator<Edge<T>> iterator) intgetID()getIncomingEdgeOfType(Object type) Collection<Edge<T>> getIncomingEdgesOfType(Object type) getOutgoingEdgeOfType(Object type) Collection<Edge<T>> getOutgoingEdgesOfType(Object type) intinDegree()intvoidvoidvoidbooleanremoveEdgeTo(Vertex destination) protected voidremoveIncomingEdge(Edge<T> edge) protected voidremoveOutgoingEdge(Edge<T> edge) toString()
-
Field Details
-
EMPTY_EDGE_LIST
-
graph
-
data
-
incoming
-
incomingLength
private int incomingLength -
outgoing
-
outgoingLength
private int outgoingLength -
id
int id
-
-
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
-
getFirstEdge
-
getIncomingEdgeOfType
-
getOutgoingEdgeOfType
-
getIncomingEdge
-
getOutgoingEdge
-
getIncomingEdges
-
getOutgoingEdges
-
getData
-
getID
public int getID() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<T extends ExplicitVertexID>
-