TypeVertex
- The type of values stored in the vertices. Must be a Comparable type.TypeEdgeReal
- The real type of edges. Must inherits Edge.public interface EdgesSimple<TypeVertex extends java.lang.Comparable<TypeVertex>,TypeEdgeReal extends Edge<TypeVertex>> extends Edges<TypeVertex,TypeEdgeReal>, java.util.Set<TypeEdgeReal>, Simple
Modifier and Type | Method and Description |
---|---|
TypeEdgeReal |
get(TypeVertex head,
TypeVertex tail)
Get the edge matching with specified head and tail.
|
TypeEdgeReal |
get(Vertex<TypeVertex> head,
Vertex<TypeVertex> tail)
Get the edge matching with specified head and tail.
|
TypeEdgeReal get(TypeVertex head, TypeVertex tail) throws EGraphIncorrectEdge
head
- The head of the edge (interchangeable with the tail if the graph is undirected).tail
- The tail of the edge (interchangeable with the head if the graph is undirected).EGraphIncorrectEdge
- If no edge matching.TypeEdgeReal get(Vertex<TypeVertex> head, Vertex<TypeVertex> tail) throws EGraphIncorrectEdge
head
- The head of the edge (interchangeable with the tail if the graph is undirected).tail
- The tail of the edge (interchangeable with the head if the graph is undirected).EGraphIncorrectEdge
- If no edge matching.