Package | Description |
---|---|
com.google.common.graph |
An API for representing graph (node and edge) data.
|
Modifier and Type | Method and Description |
---|---|
GraphBuilder<N> |
GraphBuilder.allowsSelfLoops(boolean allowsSelfLoops)
Specifies whether the graph will allow self-loops (edges that connect a node to itself).
|
static GraphBuilder<Object> |
GraphBuilder.directed()
Returns a
GraphBuilder for building directed graphs. |
GraphBuilder<N> |
GraphBuilder.expectedNodeCount(int expectedNodeCount)
Specifies the expected number of nodes in the graph.
|
static <N> GraphBuilder<N> |
GraphBuilder.from(Graph<N> graph)
Returns a
GraphBuilder initialized with all properties queryable from graph . |
<N1 extends N> |
GraphBuilder.nodeOrder(ElementOrder<N1> nodeOrder)
Specifies the order of iteration for the elements of
Graph.nodes() . |
static GraphBuilder<Object> |
GraphBuilder.undirected()
Returns a
GraphBuilder for building undirected graphs. |
Copyright © 2010-2016. All Rights Reserved.