Constructor and Description |
---|
Vertex(DirectedGraph graph,
T data,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
addEdgeTo(T destination) |
void |
addEdgeTo(T destination,
java.lang.Object type) |
void |
addEdgeTo(Vertex destination) |
void |
addEdgeTo(Vertex destination,
java.lang.Object type) |
int |
compareTo(Vertex<T> that) |
T |
getData() |
int |
getID() |
Edge<T> |
getIncomingEdge()
Get single incoming edge of any type and assert if there is more than
one.
|
Edge<T> |
getIncomingEdgeOfType(java.lang.Object type) |
java.util.Set<Edge<T>> |
getIncomingEdges() |
java.lang.Iterable<Edge<T>> |
getIncomingEdgesNotOfType(java.lang.Object type) |
java.lang.Iterable<Edge<T>> |
getIncomingEdgesOfType(java.lang.Object type) |
T |
getIncomingSourceData() |
T |
getIncomingSourceDataOfType(java.lang.Object type) |
java.lang.Iterable<T> |
getIncomingSourcesData() |
java.lang.Iterable<T> |
getIncomingSourcesDataNotOfType(java.lang.Object type) |
java.lang.Iterable<T> |
getIncomingSourcesDataOfType(java.lang.Object type) |
T |
getOutgoingDestinationData() |
T |
getOutgoingDestinationDataOfType(java.lang.Object type) |
java.lang.Iterable<T> |
getOutgoingDestinationsData() |
java.lang.Iterable<T> |
getOutgoingDestinationsDataNotOfType(java.lang.Object type) |
java.lang.Iterable<T> |
getOutgoingDestinationsDataOfType(java.lang.Object type) |
Edge<T> |
getOutgoingEdge()
Get single outgoing edge of any type and assert if there is more than
one.
|
Edge<T> |
getOutgoingEdgeOfType(java.lang.Object type) |
java.util.Set<Edge<T>> |
getOutgoingEdges() |
java.lang.Iterable<Edge<T>> |
getOutgoingEdgesNotOfType(java.lang.Object type) |
java.lang.Iterable<Edge<T>> |
getOutgoingEdgesOfType(java.lang.Object type) |
int |
inDegree() |
int |
outDegree() |
void |
removeAllEdges() |
void |
removeAllIncomingEdges() |
void |
removeAllOutgoingEdges() |
boolean |
removeEdgeTo(Vertex destination) |
java.lang.String |
toString() |
public Vertex(DirectedGraph graph, T data, int id)
public void addEdgeTo(Vertex destination)
public void addEdgeTo(Vertex destination, java.lang.Object type)
public void addEdgeTo(T destination)
public void addEdgeTo(T destination, java.lang.Object type)
public boolean removeEdgeTo(Vertex destination)
public void removeAllIncomingEdges()
public void removeAllOutgoingEdges()
public void removeAllEdges()
public int inDegree()
public int outDegree()
public java.lang.Iterable<Edge<T>> getIncomingEdgesOfType(java.lang.Object type)
public java.lang.Iterable<Edge<T>> getIncomingEdgesNotOfType(java.lang.Object type)
public java.lang.Iterable<Edge<T>> getOutgoingEdgesOfType(java.lang.Object type)
public T getIncomingSourceData()
public T getIncomingSourceDataOfType(java.lang.Object type)
public java.lang.Iterable<T> getIncomingSourcesData()
public java.lang.Iterable<T> getIncomingSourcesDataOfType(java.lang.Object type)
public java.lang.Iterable<T> getIncomingSourcesDataNotOfType(java.lang.Object type)
public java.lang.Iterable<Edge<T>> getOutgoingEdgesNotOfType(java.lang.Object type)
public java.lang.Iterable<T> getOutgoingDestinationsData()
public java.lang.Iterable<T> getOutgoingDestinationsDataOfType(java.lang.Object type)
public java.lang.Iterable<T> getOutgoingDestinationsDataNotOfType(java.lang.Object type)
public T getOutgoingDestinationData()
public T getOutgoingDestinationDataOfType(java.lang.Object type)
public Edge<T> getIncomingEdge()
public Edge<T> getOutgoingEdge()
public T getData()
public int getID()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2009 JRuby Team. All Rights Reserved.