public class ObjectGraph<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Map<T,java.util.List<T>> |
map |
java.lang.String |
name |
Constructor and Description |
---|
ObjectGraph(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(T source,
T destination,
boolean bidirectional) |
void |
addVertex(T s) |
java.util.List<T> |
BFS(T s) |
void |
getEdgesCount(boolean bidirection) |
void |
getVertexCount() |
void |
hasEdge(T s,
T d) |
boolean |
hasVertex(T s) |
java.lang.String |
toString() |