public static class Graph.Builder
extends java.lang.Object
Graph.Builder can be used to construct a new Graph little
by little.| Constructor and Description |
|---|
Builder()
|
| Modifier and Type | Method and Description |
|---|---|
Graph.Builder |
attr(java.lang.String key,
java.lang.Object value)
Puts the given key-value-pair into the
attributes map of the Graph which is
constructed by this Graph.Builder. |
Graph |
build()
Constructs a new
Graph from the values which have been
supplied to this Graph.Builder. |
Graph.Builder |
edges(Edge... edges)
|
Graph.Builder |
nodes(Node... nodes)
|
public Graph.Builder attr(java.lang.String key, java.lang.Object value)
attributes map of the Graph which is
constructed by this Graph.Builder.key - The attribute name which is inserted.value - The attribute value which is inserted.this for convenience.public Graph build()
Graph from the values which have been
supplied to this Graph.Builder.Graph from the values which have been supplied
to this Graph.Builder.public Graph.Builder edges(Edge... edges)
edges - The Edges which are added to the Graph
which is constructed by this Graph.Builder.this for convenience.public Graph.Builder nodes(Node... nodes)
nodes - The Nodes which are added to the Graph
which is constructed by this Graph.Builder.this for convenience.Copyright (c) 2014 itemis AG and others. All rights reserved.