Package org.apache.cayenne.ashwood.graph
Class MapDigraph<E,V>
- java.lang.Object
-
- org.apache.cayenne.ashwood.graph.MapDigraph<E,V>
-
- All Implemented Interfaces:
Digraph<E,V>
,DigraphIteration<E,V>
public class MapDigraph<E,V> extends Object implements Digraph<E,V>
- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description MapDigraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAllVertices(Collection<? extends E> vertices)
boolean
addVertex(E vertex)
ArcIterator<E,V>
arcIterator()
boolean
containsAllVertices(Collection<? extends E> vertices)
boolean
containsVertex(E vertex)
V
getArc(Object origin, Object destination)
boolean
hasArc(E origin, E destination)
ArcIterator<E,V>
incomingIterator(E vertex)
int
incomingSize(E vertex)
boolean
isEmpty()
boolean
isIncomingEmpty(E vertex)
boolean
isOutgoingEmpty(E vertex)
int
order()
ArcIterator<E,V>
outgoingIterator(E vertex)
int
outgoingSize(E vertex)
V
putArc(E origin, E destination, V arc)
boolean
removeAllVertices(Collection<? extends E> vertices)
Object
removeArc(E origin, E destination)
boolean
removeIncoming(E vertex)
boolean
removeOutgoing(E vertex)
boolean
removeVertex(E vertex)
int
size()
Iterator<E>
vertexIterator()
-
-
-
Method Detail
-
addAllVertices
public boolean addAllVertices(Collection<? extends E> vertices)
- Specified by:
addAllVertices
in interfaceDigraph<E,V>
-
removeVertex
public boolean removeVertex(E vertex)
- Specified by:
removeVertex
in interfaceDigraph<E,V>
-
removeAllVertices
public boolean removeAllVertices(Collection<? extends E> vertices)
- Specified by:
removeAllVertices
in interfaceDigraph<E,V>
-
removeIncoming
public boolean removeIncoming(E vertex)
- Specified by:
removeIncoming
in interfaceDigraph<E,V>
-
removeOutgoing
public boolean removeOutgoing(E vertex)
- Specified by:
removeOutgoing
in interfaceDigraph<E,V>
-
vertexIterator
public Iterator<E> vertexIterator()
- Specified by:
vertexIterator
in interfaceDigraphIteration<E,V>
-
arcIterator
public ArcIterator<E,V> arcIterator()
- Specified by:
arcIterator
in interfaceDigraphIteration<E,V>
-
outgoingIterator
public ArcIterator<E,V> outgoingIterator(E vertex)
- Specified by:
outgoingIterator
in interfaceDigraphIteration<E,V>
-
incomingIterator
public ArcIterator<E,V> incomingIterator(E vertex)
- Specified by:
incomingIterator
in interfaceDigraphIteration<E,V>
-
outgoingSize
public int outgoingSize(E vertex)
- Specified by:
outgoingSize
in interfaceDigraph<E,V>
-
incomingSize
public int incomingSize(E vertex)
- Specified by:
incomingSize
in interfaceDigraph<E,V>
-
containsVertex
public boolean containsVertex(E vertex)
- Specified by:
containsVertex
in interfaceDigraph<E,V>
-
containsAllVertices
public boolean containsAllVertices(Collection<? extends E> vertices)
- Specified by:
containsAllVertices
in interfaceDigraph<E,V>
-
isOutgoingEmpty
public boolean isOutgoingEmpty(E vertex)
- Specified by:
isOutgoingEmpty
in interfaceDigraph<E,V>
-
isIncomingEmpty
public boolean isIncomingEmpty(E vertex)
- Specified by:
isIncomingEmpty
in interfaceDigraph<E,V>
-
-