TypeVertex
- The type of values stored in the vertices. Must be a Comparable type.TypeEdge
- The type of values stored in the edges. Must be a Comparable type.TypeEdgeReal
- The real type of edges. Must inherits EdgeValuated.public interface EdgesValuated<TypeVertex extends java.lang.Comparable<TypeVertex>,TypeEdge extends java.lang.Comparable<TypeEdge>,TypeEdgeReal extends EdgeValuated<TypeVertex,TypeEdge>> extends Edges<TypeVertex,TypeEdgeReal>, Valuated
Modifier and Type | Method and Description |
---|---|
boolean |
add(TypeVertex head,
TypeVertex tail,
TypeEdge value)
Add a new edge in the graph.
|
boolean |
add(Vertex<TypeVertex> head,
Vertex<TypeVertex> tail,
TypeEdge value)
Add a new edge in the graph.
|
boolean |
contains(TypeVertex head,
TypeVertex tail,
TypeEdge value)
Returns true if this collection contains the specified edge.
|
boolean |
contains(Vertex<TypeVertex> head,
Vertex<TypeVertex> tail,
TypeEdge value)
Returns true if this collection contains the specified edge.
|
boolean add(TypeVertex head, TypeVertex tail, TypeEdge value)
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).value
- The value associated with the edge.boolean add(Vertex<TypeVertex> head, Vertex<TypeVertex> tail, TypeEdge value)
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).value
- The value associated with the edge.boolean contains(TypeVertex head, TypeVertex tail, TypeEdge value)
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).value
- The value associated with the edge.boolean contains(Vertex<TypeVertex> head, Vertex<TypeVertex> tail, TypeEdge value)
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).value
- The value associated with the edge.