public class DirectedGraph<T extends ExplicitVertexID> extends Object
Constructor and Description |
---|
DirectedGraph() |
Modifier and Type | Method and Description |
---|---|
protected Edge<T> |
addEdge(Edge<T> newEdge) |
void |
addEdge(T source,
T destination,
Object type) |
Collection<T> |
allData() |
Collection<Edge<T>> |
edges() |
Iterable<Edge<T>> |
edgesOfType(Object type) |
Vertex<T> |
findOrCreateVertexFor(T data) |
Vertex<T> |
findVertexFor(T data) |
protected Edge<T>[] |
getEdges() |
Collection<T> |
getInorderData() |
protected Edge<T>[] |
growEdges(Edge<T>[] array,
int realLength) |
void |
removeEdge(Edge<T> edge) |
void |
removeEdge(T source,
T destination) |
void |
removeVertexFor(T data) |
int |
size() |
String |
toString() |
Collection<Vertex<T>> |
vertices() |
public Collection<Vertex<T>> vertices()
public Collection<Edge<T>> edges()
public Collection<T> allData()
public Collection<T> getInorderData()
public Vertex<T> findOrCreateVertexFor(T data)
public void removeVertexFor(T data)
public int size()
Copyright © 2017. All rights reserved.