public class DirectedGraph<T> extends Object
Constructor and Description |
---|
DirectedGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(T source,
T destination,
Object type) |
Collection<T> |
allData() |
Collection<Edge<T>> |
edges() |
Iterable<Edge<T>> |
edgesOfType(Object type) |
Vertex<T> |
findVertexFor(T data) |
Collection<T> |
getInorderData() |
void |
removeEdge(Edge edge) |
void |
removeEdge(T source,
T destination) |
void |
removeVertexFor(T data) |
int |
size() |
String |
toString() |
Vertex<T> |
vertexFor(T data) |
Collection<Vertex<T>> |
vertices() |
public Collection<Vertex<T>> vertices()
public Collection<Edge<T>> edges()
public Collection<T> allData()
public Collection<T> getInorderData()
public void removeEdge(Edge edge)
public Vertex<T> vertexFor(T data)
public void removeVertexFor(T data)
public int size()
Copyright © 2001-2015 JRuby. All Rights Reserved.