Package org.onlab.graph
Class AdjacencyListsGraph<V extends Vertex,E extends Edge<V>>
- java.lang.Object
-
- org.onlab.graph.AdjacencyListsGraph<V,E>
-
-
Constructor Summary
Constructors Constructor Description AdjacencyListsGraph(Set<V> vertexes, Set<E> edges)Creates a graph comprising of the specified vertexes and edges.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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.inthashCode()StringtoString()
-
-
-
Method Detail
-
getVertexes
public Set<V> getVertexes()
Description copied from interface:GraphReturns the set of vertexes comprising the graph.
-
getEdges
public Set<E> getEdges()
Description copied from interface:GraphReturns the set of edges comprising the graph.
-
getEdgesFrom
public Set<E> getEdgesFrom(V src)
Description copied from interface:GraphReturns all edges leading out from the specified source vertex.
-
getEdgesTo
public Set<E> getEdgesTo(V dst)
Description copied from interface:GraphReturns all edges leading towards the specified destination vertex.
-
-