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