Uses of Class
com.google.common.graph.GraphBuilder
-
Uses of GraphBuilder in com.google.common.graph
Modifier and TypeMethodDescriptionGraphBuilder.allowsSelfLoops
(boolean allowsSelfLoops) Specifies whether the graph will allow self-loops (edges that connect a node to itself).static GraphBuilder
<Object> GraphBuilder.directed()
Returns aGraphBuilder
for building directed graphs.GraphBuilder.expectedNodeCount
(int expectedNodeCount) Specifies the expected number of nodes in the graph.static <N> GraphBuilder
<N> Returns aGraphBuilder
initialized with all properties queryable fromgraph
.<N1 extends N>
GraphBuilder<N1> GraphBuilder.incidentEdgeOrder
(ElementOrder<N1> incidentEdgeOrder) Specifies the order of iteration for the elements ofGraph.edges()
,Graph.adjacentNodes(Object)
,Graph.predecessors(Object)
,Graph.successors(Object)
andGraph.incidentEdges(Object)
.<N1 extends N>
GraphBuilder<N1> GraphBuilder.nodeOrder
(ElementOrder<N1> nodeOrder) Specifies the order of iteration for the elements ofGraph.nodes()
.static GraphBuilder
<Object> GraphBuilder.undirected()
Returns aGraphBuilder
for building undirected graphs.