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 Type
    Method
    Description
    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.
    edgesOf(V vertex)
    Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.
    Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.
    boolean
    Return whether the graph uses cache for edgesOf, incomingEdgesOf and outgoingEdgesOf methods.
    Get a set of all edges in AsSynchronizedGraph's backing graph outgoing from the specified vertex.
    boolean
    Remove the specified edge from AsSynchronizedGraph's backing graph.
    removeEdge(V sourceVertex, V targetVertex)
    Remove an edge from AsSynchronizedGraph's backing graph.
    boolean
    Remove the specified vertex from AsSynchronizedGraph's backing graph.
  • Method Details

    • 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

      Set<E> edgesOf(V vertex)
      Get all edges touching the specified vertex in AsSynchronizedGraph's backing graph.
    • incomingEdgesOf

      Set<E> incomingEdgesOf(V vertex)
      Get a set of all edges in AsSynchronizedGraph's backing graph incoming into the specified vertex.
    • outgoingEdgesOf

      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 for edgesOf, incomingEdgesOf and outgoingEdgesOf methods.
      Returns:
      true if cache is in use, false if cache is not in use.