public class TrivialGraph<V,E extends Edge<V>,EX extends Exception> extends Object implements SymmetricGraph<V,E,EX>
| Constructor and Description |
|---|
TrivialGraph(V vertex) |
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
getEdgesFrom(V from)
Gets the edges from the provided vertex.
|
Set<E> |
getEdgesTo(V to)
Gets the edges to the provided vertex.
|
Set<V> |
getVertices()
Gets the set of vertices for this graph.
|
public TrivialGraph(V vertex)
public Set<V> getVertices()
MultiGraphgetVertices in interface MultiGraph<V,E extends Edge<V>,EX extends Exception>public Set<E> getEdgesFrom(V from)
Graphpublic Set<E> getEdgesTo(V to)
SymmetricGraphgetEdgesTo in interface SymmetricGraph<V,E extends Edge<V>,EX extends Exception>getEdgesTo in interface SymmetricMultiGraph<V,E extends Edge<V>,EX extends Exception>Copyright © 2016. All rights reserved.