Package com.google.common.graph
Class AbstractGraphBuilder<N>
- java.lang.Object
-
- com.google.common.graph.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
allowsSelfLoops
(package private) boolean
directed
(package private) Optional<java.lang.Integer>
expectedNodeCount
(package private) ElementOrder<N>
nodeOrder
-
Constructor Summary
Constructors Constructor Description AbstractGraphBuilder(boolean directed)
Creates a new instance with the specified edge directionality.
-
-
-
Field Detail
-
directed
final boolean directed
-
allowsSelfLoops
boolean allowsSelfLoops
-
nodeOrder
ElementOrder<N> nodeOrder
-
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.
-
-