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
,incomingEdgesOf
andoutgoingEdgesOf
methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description E
addEdge(V sourceVertex, V targetVertex)
Add an edge into AsSynchronizedGraph's backing graph.boolean
addEdge(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.boolean
isCacheEnabled()
Return whether the graph uses cache foredgesOf
,incomingEdgesOf
andoutgoingEdgesOf
methods.java.util.Set<E>
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.E
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 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
,incomingEdgesOf
andoutgoingEdgesOf
methods.- Returns:
true
if cache is in use,false
if cache is not in use.
-
-