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.boolean
Add 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.boolean
Return whether the graph uses cache foredgesOf
,incomingEdgesOf
andoutgoingEdgesOf
methods.outgoingEdgesOf
(V vertex) Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.boolean
removeEdge
(E e) Remove the specified edge from AsSynchronizedGraph's backing graph.removeEdge
(V sourceVertex, V targetVertex) Remove an edge from AsSynchronizedGraph's backing graph.boolean
removeVertex
(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
,incomingEdgesOf
andoutgoingEdgesOf
methods.- Returns:
true
if cache is in use,false
if cache is not in use.
-