I
- Vertex id typeV
- Vertex value typeE
- Edge value typepublic class NumericTestGraph<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object
Constructor and Description |
---|
NumericTestGraph(GiraphConfiguration conf) |
NumericTestGraph(TestGraph<I,V,E> testGraph) |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Number fromVertex,
Number toVertex)
Add Edge to the graph with default Edge Value, by adding it to
outEdges of
fromVertex , potentially creating fromVertex
if it doesn't exist. |
void |
addEdge(Number fromVertex,
Number toVertex,
E edgeValue)
Add Edge to the graph with provided Edge Value, by adding it to
outEdges of
fromVertex , potentially creating fromVertex
if it doesn't exist. |
void |
addEdge(Number fromVertex,
Number toVertex,
Number edgeValue)
Add Edge to the graph with provided Edge Value, by adding it to
outEdges of
fromVertex , potentially creating fromVertex
if it doesn't exist. |
void |
addSymmetricEdge(Number fromVertex,
Number toVertex)
Add symmetric Edge to the graph with default Edge Value, by adding it to
outEdges of vertices on both ends, potentially creating them both,
if they don't exist.
|
void |
addSymmetricEdge(Number vertexId,
Number toVertex,
E edgeValue)
Add symmetric Edge to the graph with provided Edge Value, by adding it to
outEdges of vertices on both ends, potentially creating them both,
if they don't exist.
|
void |
addSymmetricEdge(Number fromVertex,
Number toVertex,
Number edgeValue)
Add symmetric Edge to the graph with provided Edge Value, by adding it to
outEdges of vertices on both ends, potentially creating them both,
if they don't exist.
|
void |
addVertex(Number vertexId)
Add Vertex with a given id to the graph, initializing it to
default vertex value and no edges.
|
void |
addVertex(Number vertexId,
Number vertexValue)
Add Vertex with a given id and a given Vertex Value to the graph,
initializing it to have no edges.
|
void |
addVertex(Number vertexId,
Number vertexValue,
Number edgeValue,
Number... outEdges)
Add Vertex with a given id and a given Vertex Value to the graph,
with listed outgoing edges, all initialized to same provided
edgeValue . |
void |
addVertex(Number vertexId,
V vertexValue)
Add Vertex with a given id and a given Vertex Value to the graph,
initializing it to have no edges.
|
void |
addVertex(Number vertexId,
V vertexValue,
Supplier<E> edgeSupplier,
Number... outEdges)
Add Vertex with a given id and a given Vertex Value to the graph,
with listed outgoing edges, all initialized to same provided
edgeSupplier . |
Vertex<I,V,E> |
createVertex() |
E |
edgeValueOrCreate(E edgeValue) |
ImmutableClassesGiraphConfiguration<I,V,E> |
getConf() |
TestGraph<I,V,E> |
getTestGraph() |
V |
getValue(Number vertexId)
Get Vertex Value for a given id.
|
Vertex<I,V,E> |
getVertex(Number vertexId)
Get Vertex for a given id.
|
int |
getVertexCount()
Get number of vertices in the graph
|
void |
initializeVertex(Vertex<I,V,E> v,
I id,
Supplier<V> valueSupplier,
List<Edge<I,E>> edgesList) |
Vertex<I,V,E> |
makeVertex(Number vertexId,
Number value,
Number edgeValue,
Number... edges)
Creates a new Vertex object, without adding it into the graph.
|
Vertex<I,V,E> |
makeVertex(Number vertexId,
V vertexValue,
Map.Entry<? extends Number,? extends Number>... edges)
Creates a new Vertex object, without adding it into the graph.
|
Vertex<I,V,E> |
makeVertex(Number vertexId,
V vertexValue,
Supplier<E> edgeSupplier,
Number... edges)
Creates a new Vertex object, without adding it into the graph.
|
E |
numberToEdgeValue(Number edgeValue) |
I |
numberToVertexId(Number value) |
V |
numberToVertexValue(Number value) |
String |
toString() |
public NumericTestGraph(GiraphConfiguration conf)
public ImmutableClassesGiraphConfiguration<I,V,E> getConf()
public int getVertexCount()
public void addVertex(Number vertexId)
public void addVertex(Number vertexId, Number vertexValue)
public void addVertex(Number vertexId, Number vertexValue, Number edgeValue, Number... outEdges)
edgeValue
.public void addVertex(Number vertexId, V vertexValue)
public void addVertex(Number vertexId, V vertexValue, Supplier<E> edgeSupplier, Number... outEdges)
edgeSupplier
.public void addEdge(Number fromVertex, Number toVertex)
fromVertex
, potentially creating fromVertex
if it doesn't exist.public void addEdge(Number fromVertex, Number toVertex, Number edgeValue)
fromVertex
, potentially creating fromVertex
if it doesn't exist.public void addEdge(Number fromVertex, Number toVertex, E edgeValue)
fromVertex
, potentially creating fromVertex
if it doesn't exist.public void addSymmetricEdge(Number fromVertex, Number toVertex)
public void addSymmetricEdge(Number fromVertex, Number toVertex, Number edgeValue)
public void addSymmetricEdge(Number vertexId, Number toVertex, E edgeValue)
public Vertex<I,V,E> makeVertex(Number vertexId, V vertexValue, Map.Entry<? extends Number,? extends Number>... edges)
public Vertex<I,V,E> makeVertex(Number vertexId, V vertexValue, Supplier<E> edgeSupplier, Number... edges)
public Vertex<I,V,E> makeVertex(Number vertexId, Number value, Number edgeValue, Number... edges)
public void initializeVertex(Vertex<I,V,E> v, I id, Supplier<V> valueSupplier, List<Edge<I,E>> edgesList)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.