Package | Description |
---|---|
org.apache.giraph.block_app.test_setup |
Utilities for unit tests.
|
org.apache.giraph.block_app.test_setup.graphs |
Common Graphs for unit tests.
|
Modifier and Type | Method and Description |
---|---|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
TestGraphUtils.chainModifiers(TestGraphModifier<I,V,E>... graphModifiers)
Chain execution of multiple TestGraphModifier into one.
|
Modifier and Type | Method and Description |
---|---|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
TestGraphUtils.chainModifiers(TestGraphModifier<I,V,E>... graphModifiers)
Chain execution of multiple TestGraphModifier into one.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
TestGraphUtils.runTest(TestGraphModifier<? super I,? super V,? super E> graphInitializer,
TestGraphChecker<? super I,? super V,? super E> graphChecker,
BulkConfigurator configurator)
Creates configuration using configurator, initializes the graph using
graphInitializer, and checks it via graphChecker.
|
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
TestGraphUtils.runTest(TestGraphModifier<? super I,? super V,? super E> graphInitializer,
TestGraphChecker<? super I,? super V,? super E> graphChecker,
GiraphConfiguration conf)
Uses provided configuration, initializes the graph using
graphInitializer, and checks it via graphChecker.
|
Modifier and Type | Class and Description |
---|---|
class |
EachVertexInit<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Traverse each Vertex in the graph, and initialize it with a given
consumer function.
|
class |
Small1GraphInit<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Create a network that looks like:
1 5
/ \ / \ 6
0---2--3---4
where 6 is disconnected from the rest of the network.
|
class |
Small2GraphInit<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Create a network that looks like:
1 5
/ \ / \ 6
0---2 3---4
where 6 is disconnected from the rest of the network.
|
class |
SmallDirectedForestGraphInit<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Create a directed forest that looks like:
0 4 6
/ \ | / \
1 2 5 7 8
|
3
Edges are directed from top to bottom.
|
class |
SmallDirectedTreeGraphInit<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Create a directed tree that looks like:
0 __
/ \ \
1 2 6
| |\
3 4 5
Edges are directed from top to bottom.
|
class |
SyntheticGraphInit<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Creates synthetic graphs, that can have community structure.
|
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.