Uses of Class
com.google.common.graph.NetworkBuilder
-
Packages that use NetworkBuilder Package Description com.google.common.graph An API for representing graph (node and edge) data. -
-
Uses of NetworkBuilder in com.google.common.graph
Methods in com.google.common.graph that return NetworkBuilder Modifier and Type Method Description NetworkBuilder<N,E>NetworkBuilder. allowsParallelEdges(boolean allowsParallelEdges)Specifies whether the network will allow parallel edges.NetworkBuilder<N,E>NetworkBuilder. allowsSelfLoops(boolean allowsSelfLoops)Specifies whether the network will allow self-loops (edges that connect a node to itself).private <N1 extends N,E1 extends E>
NetworkBuilder<N1,E1>NetworkBuilder. cast()static NetworkBuilder<java.lang.Object,java.lang.Object>NetworkBuilder. directed()Returns aNetworkBuilderfor 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<N,E>NetworkBuilder. expectedEdgeCount(int expectedEdgeCount)Specifies the expected number of edges in the network.NetworkBuilder<N,E>NetworkBuilder. expectedNodeCount(int expectedNodeCount)Specifies the expected number of nodes in the network.static <N,E>
NetworkBuilder<N,E>NetworkBuilder. from(Network<N,E> network)Returns aNetworkBuilderinitialized 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<java.lang.Object,java.lang.Object>NetworkBuilder. undirected()Returns aNetworkBuilderfor building undirected networks.Constructors in com.google.common.graph with parameters of type NetworkBuilder Constructor Description Builder(NetworkBuilder<N,E> networkBuilder)ConfigurableMutableNetwork(NetworkBuilder<? super N,? super E> builder)Constructs a mutable graph with the properties specified inbuilder.ConfigurableNetwork(NetworkBuilder<? super N,? super E> builder)Constructs a graph with the properties specified inbuilder.ConfigurableNetwork(NetworkBuilder<? super N,? super E> builder, java.util.Map<N,NetworkConnections<N,E>> nodeConnections, java.util.Map<E,N> edgeToReferenceNode)Constructs a graph with the properties specified inbuilder, initialized with the given node and edge maps.
-