Class GraphDataManager<N,E>

java.lang.Object
org.ddogleg.graph.GraphDataManager<N,E>

public class GraphDataManager<N,E> extends Object
Handles creating and recycling data in a graph.
  • Field Details

  • Constructor Details

    • GraphDataManager

      public GraphDataManager()
  • Method Details

    • reset

      public void reset()
      Takes all the used nodes and makes them unused.
    • resetHard

      public void resetHard()
      Takes all the used nodes and makes them unused. Also dereferences any objects saved in 'data'.
    • createEdge

      public Edge<N,E> createEdge()
    • recycleEdge

      public void recycleEdge(Edge<N,E> e)
    • createNode

      public Node<N,E> createNode()
    • recycleNode

      public void recycleNode(Node<N,E> n)