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's
edgesOf,
incomingEdgesOf and outgoingEdgesOf methods.-
Method Summary
Modifier and TypeMethodDescriptionAdd an edge into AsSynchronizedGraph's backing graph.booleanAdd an edge into AsSynchronizedGraph's backing graph.Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.incomingEdgesOf(V vertex) Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.booleanReturn whether the graph uses cache foredgesOf,incomingEdgesOfandoutgoingEdgesOfmethods.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.removeEdge(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 Details
-
addEdge
Add an edge into AsSynchronizedGraph's backing graph. -
addEdge
Add an edge into AsSynchronizedGraph's backing graph. -
edgesOf
Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph. -
incomingEdgesOf
Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex. -
outgoingEdgesOf
Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex. -
removeEdge
Remove the specified edge from AsSynchronizedGraph's backing graph. -
removeEdge
Remove an edge from AsSynchronizedGraph's backing graph. -
removeVertex
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.
-