public class TestBarabasiAlbert
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Supplier<Number> |
edgeFactory |
protected int |
edges_to_add_per_timestep |
protected com.google.common.base.Supplier<Graph<Integer,Number>> |
graphFactory |
protected int |
init_vertices |
protected int |
num_tests |
protected int |
num_timesteps |
protected int |
random_seed |
protected com.google.common.base.Supplier<Integer> |
vertexFactory |
| Constructor and Description |
|---|
TestBarabasiAlbert() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
static junit.framework.Test |
suite() |
void |
testDirectedGraphCreation() |
void |
testDirectedMultigraphCreation() |
void |
testEveryNodeHasCorrectMinimumNumberOfEdges()
Every node should have an out-degree AT LEAST equal to the number of
edges added per timestep (dependent on if it is directed or undirected).
|
void |
testGraphCreation() |
void |
testMultigraphCreation() |
void |
testNoSelfLoops()
Due to the way the Barabasi-Albert algorithm works there should be no
opportunities for the generation of self-loops within the graph.
|
void |
testNotEveryEdgeToOneNode()
Check that not every edge goes to one node; the in-degree of any node
should be strictly less than the number of edges.
|
void |
testPreconditions() |
void |
testUndirectedGraphCreation() |
void |
testUndirectedMultigraphCreation() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toStringprotected com.google.common.base.Supplier<Integer> vertexFactory
protected com.google.common.base.Supplier<Number> edgeFactory
protected int init_vertices
protected int edges_to_add_per_timestep
protected int random_seed
protected int num_timesteps
protected int num_tests
public static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCasepublic void testMultigraphCreation()
public void testDirectedMultigraphCreation()
public void testUndirectedMultigraphCreation()
public void testGraphCreation()
public void testDirectedGraphCreation()
public void testUndirectedGraphCreation()
public void testNoSelfLoops()
public void testPreconditions()
public void testEveryNodeHasCorrectMinimumNumberOfEdges()
public void testNotEveryEdgeToOneNode()
Copyright © 2016. All rights reserved.