|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgalois.objects.graph.MorphGraph.LongGraphBuilder
public static class MorphGraph.LongGraphBuilder
A MorphGraph builder, providing combinations of several features.
| Constructor Summary | |
|---|---|
MorphGraph.LongGraphBuilder()
Constructs a new builder instance with the following default settings: the graph will be undirected, parallel, and backed by a hash map. |
|
| Method Summary | ||
|---|---|---|
MorphGraph.LongGraphBuilder |
backedByVector(boolean backedByVector)
Indicates whether the underlying implementation of the graph should use a ArrayList
or a HashMap for representing the set of neighbors of a node. |
|
|
create()
Builds the final graph. |
|
MorphGraph.LongGraphBuilder |
directed(boolean directed)
Indicates whether edges in the graph are directed or not. |
|
MorphGraph.LongGraphBuilder |
serial(boolean serial)
Indicates whether the implementation of the graph about to be created is serial (there is no concurrency or transactional support) or parallel (can be safely used within Galois iterators). |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MorphGraph.LongGraphBuilder()
| Method Detail |
|---|
public MorphGraph.LongGraphBuilder serial(boolean serial)
serial - boolean value that indicates whether the graph is serial or not.public MorphGraph.LongGraphBuilder directed(boolean directed)
directed - boolean flag that indicates whether the graph is directed.public MorphGraph.LongGraphBuilder backedByVector(boolean backedByVector)
ArrayList
or a HashMap for representing the set of neighbors of a node. The chosen representation
has an impact on performance. As a rule of thumb, use vector-based representations if and only if the set of
neighbors of every node in the graph remains sparse throughout the computation.
backedByVector - flag that indicates whether to use the vector-based representation.public <N extends GObject> LongGraph<N> create()
N - the type of the object stored in each node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||