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