V
- the graph vertex typeE
- the graph edge typeIE
- the intrusive edge typepublic abstract class BaseIntrusiveEdgesSpecifics<V,E,IE extends org.jgrapht.graph.IntrusiveEdge> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Map<E,IE> |
edgeMap |
protected Set<E> |
unmodifiableEdgeSet |
Constructor and Description |
---|
BaseIntrusiveEdgesSpecifics(Map<E,IE> edgeMap)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
add(E e,
V sourceVertex,
V targetVertex)
Add a new edge
|
boolean |
containsEdge(E e)
Check if an edge exists
|
Set<E> |
getEdgeSet()
Get the edge set.
|
V |
getEdgeSource(E e)
Get the source of an edge.
|
V |
getEdgeTarget(E e)
Get the target of an edge.
|
double |
getEdgeWeight(E e)
Get the weight of an edge.
|
protected abstract IE |
getIntrusiveEdge(E e)
Get the intrusive edge of an edge.
|
void |
remove(E e)
Remove an edge.
|
void |
setEdgeWeight(E e,
double weight)
Set the weight of an edge
|
public boolean containsEdge(E e)
e
- the edgepublic void remove(E e)
e
- the edgepublic V getEdgeSource(E e)
e
- the edgepublic V getEdgeTarget(E e)
e
- the edgepublic double getEdgeWeight(E e)
e
- the edgepublic void setEdgeWeight(E e, double weight)
e
- the edgeweight
- the new weightpublic abstract boolean add(E e, V sourceVertex, V targetVertex)
e
- the edgesourceVertex
- the source vertex of the edgetargetVertex
- the target vertex of the edgeCopyright © 2019. All rights reserved.