Constructor and Description |
---|
AdjacencyListsGraph(Set<V> vertexes,
Set<E> edges)
Creates a graph comprising of the specified vertexes and edges.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<E> |
getEdges()
Returns the set of edges comprising the graph.
|
Set<E> |
getEdgesFrom(V src)
Returns all edges leading out from the specified source vertex.
|
Set<E> |
getEdgesTo(V dst)
Returns all edges leading towards the specified destination vertex.
|
Set<V> |
getVertexes()
Returns the set of vertexes comprising the graph.
|
int |
hashCode() |
String |
toString() |
public Set<V> getVertexes()
Graph
public Set<E> getEdges()
Graph
public Set<E> getEdgesFrom(V src)
Graph
public Set<E> getEdgesTo(V dst)
Graph