Package es.uam.eps.ir.relison.metrics
Class CorenessTest
java.lang.Object
es.uam.eps.ir.relison.metrics.CorenessTest
public class CorenessTest
extends java.lang.Object
Automated unit tests for the coreness metric.
-
Field Summary
Fields Modifier and Type Field Description private DirectedGraph<java.lang.Integer>
directed
Directed graphprivate DirectedGraph<java.lang.Integer>
directedComplete
Directed complete graphprivate DirectedGraph<java.lang.Integer>
directedEmpty
Directed empty graph (only nodes)private UndirectedGraph<java.lang.Integer>
undirected
Undirected graphprivate UndirectedGraph<java.lang.Integer>
undirectedComplete
Directed complete graphprivate UndirectedGraph<java.lang.Integer>
undirectedEmpty
Undirected empty graphprivate UndirectedGraph<java.lang.Integer>
undirectedMultiGraph
Undirected multi graph. -
Constructor Summary
Constructors Constructor Description CorenessTest()
-
Method Summary
Modifier and Type Method Description void
complete()
Checks the coreness for a group of complete networks.void
directed()
Checks the different variants of the coreness for a directed network.void
empty()
Checks the coreness for a group of empty networks.void
setUp()
static void
setUpClass()
void
tearDown()
static void
tearDownClass()
void
undirected()
Checks the coreness for an undirected network.void
undirectedMultigraph()
Checks the coreness of an undirected multi-graph
-
Field Details
-
directedComplete
Directed complete graph -
undirectedComplete
Directed complete graph -
directedEmpty
Directed empty graph (only nodes) -
undirected
Undirected graph -
directed
Directed graph -
undirectedEmpty
Undirected empty graph -
undirectedMultiGraph
Undirected multi graph.
-
-
Constructor Details
-
CorenessTest
public CorenessTest()
-
-
Method Details
-
setUpClass
public static void setUpClass() -
tearDownClass
public static void tearDownClass() -
setUp
public void setUp() -
tearDown
public void tearDown() -
empty
public void empty()Checks the coreness for a group of empty networks. -
complete
public void complete()Checks the coreness for a group of complete networks. -
undirected
public void undirected()Checks the coreness for an undirected network. -
undirectedMultigraph
public void undirectedMultigraph()Checks the coreness of an undirected multi-graph -
directed
public void directed()Checks the different variants of the coreness for a directed network.
-