Class AbstractGraphBuilder<N>

  • Direct Known Subclasses:
    GraphBuilder, NetworkBuilder, ValueGraphBuilder

    abstract class AbstractGraphBuilder<N>
    extends java.lang.Object
    A base class for builders that construct graphs with user-defined properties.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractGraphBuilder​(boolean directed)
      Creates a new instance with the specified edge directionality.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • directed

        final boolean directed
      • allowsSelfLoops

        boolean allowsSelfLoops
      • expectedNodeCount

        Optional<java.lang.Integer> expectedNodeCount
    • Constructor Detail

      • 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.