Class AbstractGraphBuilder<N>

java.lang.Object
com.google.common.graph.AbstractGraphBuilder<N>
Direct Known Subclasses:
GraphBuilder, NetworkBuilder, ValueGraphBuilder

abstract class AbstractGraphBuilder<N> extends Object
A base class for builders that construct graphs with user-defined properties.
  • Field Details

    • directed

      final boolean directed
    • allowsSelfLoops

      boolean allowsSelfLoops
    • nodeOrder

      ElementOrder<N> nodeOrder
    • incidentEdgeOrder

      ElementOrder<N> incidentEdgeOrder
    • expectedNodeCount

      Optional<Integer> expectedNodeCount
  • Constructor Details

    • AbstractGraphBuilder

      AbstractGraphBuilder(boolean directed)
      Creates a new instance with the specified edge directionality.
      Parameters:
      directed - if true, creates an instance for graphs whose edges are each directed; if false, creates an instance for graphs whose edges are each undirected.