public class Graph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Vertex> |
graph |
Constructor and Description |
---|
Graph() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(java.lang.String source,
java.lang.String dest,
double cost) |
Vertex |
getVertex(java.lang.String s) |
boolean |
isEmpty() |
int |
size() |
java.util.Collection<Vertex> |
vertices() |
private java.util.Map<java.lang.String,Vertex> graph