Module org.jgrapht.core
Package org.jgrapht.graph.concurrent
Interface AsSynchronizedGraph.CacheStrategy<V,E>
-
- All Known Implementing Classes:
AsSynchronizedGraph.CacheAccess,AsSynchronizedGraph.NoCache,AsSynchronizedGraph.NoCopy
- Enclosing class:
- AsSynchronizedGraph<V,E>
private static interface AsSynchronizedGraph.CacheStrategy<V,E>An interface for cache strategy of AsSynchronizedGraph'sedgesOf,incomingEdgesOfandoutgoingEdgesOfmethods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EaddEdge(V sourceVertex, V targetVertex)Add an edge into AsSynchronizedGraph's backing graph.booleanaddEdge(V sourceVertex, V targetVertex, E e)Add an edge into AsSynchronizedGraph's backing graph.java.util.Set<E>edgesOf(V vertex)Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.java.util.Set<E>incomingEdgesOf(V vertex)Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.booleanisCacheEnabled()Return whether the graph uses cache foredgesOf,incomingEdgesOfandoutgoingEdgesOfmethods.java.util.Set<E>outgoingEdgesOf(V vertex)Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.booleanremoveEdge(E e)Remove the specified edge from AsSynchronizedGraph's backing graph.EremoveEdge(V sourceVertex, V targetVertex)Remove an edge from AsSynchronizedGraph's backing graph.booleanremoveVertex(V v)Remove the specified vertex from AsSynchronizedGraph's backing graph.
-
-
-
Method Detail
-
addEdge
E addEdge(V sourceVertex, V targetVertex)
Add an edge into AsSynchronizedGraph's backing graph.
-
addEdge
boolean addEdge(V sourceVertex, V targetVertex, E e)
Add an edge into AsSynchronizedGraph's backing graph.
-
edgesOf
java.util.Set<E> edgesOf(V vertex)
Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.
-
incomingEdgesOf
java.util.Set<E> incomingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.
-
outgoingEdgesOf
java.util.Set<E> outgoingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.
-
removeEdge
boolean removeEdge(E e)
Remove the specified edge from AsSynchronizedGraph's backing graph.
-
removeEdge
E removeEdge(V sourceVertex, V targetVertex)
Remove an edge from AsSynchronizedGraph's backing graph.
-
removeVertex
boolean removeVertex(V v)
Remove the specified vertex from AsSynchronizedGraph's backing graph.
-
isCacheEnabled
boolean isCacheEnabled()
Return whether the graph uses cache foredgesOf,incomingEdgesOfandoutgoingEdgesOfmethods.- Returns:
trueif cache is in use,falseif cache is not in use.
-
-