- java.lang.Object
-
- org.jgrapht.graph.concurrent.AsSynchronizedGraph.NoCache
-
- All Implemented Interfaces:
java.io.Serializable,AsSynchronizedGraph.CacheStrategy<V,E>
- Direct Known Subclasses:
AsSynchronizedGraph.NoCopy
- Enclosing class:
- AsSynchronizedGraph<V,E>
private class AsSynchronizedGraph.NoCache extends java.lang.Object implements AsSynchronizedGraph.CacheStrategy<V,E>, java.io.Serializable
Don't use cache for AsSynchronizedGraph'sedgesOf,incomingEdgesOfandoutgoingEdgesOfmethods.
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateNoCache()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
addEdge
public E addEdge(V sourceVertex, V targetVertex)
Add an edge into AsSynchronizedGraph's backing graph.- Specified by:
addEdgein interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
addEdge
public boolean addEdge(V sourceVertex, V targetVertex, E e)
Add an edge into AsSynchronizedGraph's backing graph.- Specified by:
addEdgein interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
edgesOf
public java.util.Set<E> edgesOf(V vertex)
Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.- Specified by:
edgesOfin interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
incomingEdgesOf
public java.util.Set<E> incomingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.- Specified by:
incomingEdgesOfin interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
outgoingEdgesOf
public java.util.Set<E> outgoingEdgesOf(V vertex)
Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.- Specified by:
outgoingEdgesOfin interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
removeEdge
public boolean removeEdge(E e)
Remove the specified edge from AsSynchronizedGraph's backing graph.- Specified by:
removeEdgein interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
removeEdge
public E removeEdge(V sourceVertex, V targetVertex)
Remove an edge from AsSynchronizedGraph's backing graph.- Specified by:
removeEdgein interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
removeVertex
public boolean removeVertex(V v)
Remove the specified vertex from AsSynchronizedGraph's backing graph.- Specified by:
removeVertexin interfaceAsSynchronizedGraph.CacheStrategy<V,E>
-
isCacheEnabled
public boolean isCacheEnabled()
Return whether the graph uses cache foredgesOf,incomingEdgesOfandoutgoingEdgesOfmethods.- Specified by:
isCacheEnabledin interfaceAsSynchronizedGraph.CacheStrategy<V,E>- Returns:
trueif cache is in use,falseif cache is not in use.
-
-