Uses of Class
com.google.common.graph.NetworkBuilder
-
Uses of NetworkBuilder in com.google.common.graph
Modifier and TypeMethodDescriptionNetworkBuilder.allowsParallelEdges
(boolean allowsParallelEdges) Specifies whether the network will allow parallel edges.NetworkBuilder.allowsSelfLoops
(boolean allowsSelfLoops) Specifies whether the network will allow self-loops (edges that connect a node to itself).static NetworkBuilder
<Object, Object> NetworkBuilder.directed()
Returns aNetworkBuilder
for building directed networks.<E1 extends E>
NetworkBuilder<N, E1> NetworkBuilder.edgeOrder
(ElementOrder<E1> edgeOrder) Specifies the order of iteration for the elements ofNetwork.edges()
.NetworkBuilder.expectedEdgeCount
(int expectedEdgeCount) Specifies the expected number of edges in the network.NetworkBuilder.expectedNodeCount
(int expectedNodeCount) Specifies the expected number of nodes in the network.static <N,
E> NetworkBuilder <N, E> Returns aNetworkBuilder
initialized with all properties queryable fromnetwork
.<N1 extends N>
NetworkBuilder<N1, E> NetworkBuilder.nodeOrder
(ElementOrder<N1> nodeOrder) Specifies the order of iteration for the elements ofNetwork.nodes()
.static NetworkBuilder
<Object, Object> NetworkBuilder.undirected()
Returns aNetworkBuilder
for building undirected networks.