Package es.uam.eps.ir.relison.metrics
Class VertexMetricsTest
java.lang.Object
es.uam.eps.ir.relison.metrics.VertexMetricsTest
public class VertexMetricsTest
extends java.lang.Object
Automated unit tests for the vertex metrics.
-
Field Summary
Fields Modifier and Type Field Description private DirectedGraph<java.lang.Integer>
directedComplete
Directed complete graph.private DirectedGraph<java.lang.Integer>
directedEmpty
Directed empty graph (only nodes).private DirectedGraph<java.lang.Integer>
directedNonConnected
Directed disconnected graph (not even weakly).private DirectedGraph<java.lang.Integer>
directedStronglyConnected
Directed strongly connected graph.private DirectedGraph<java.lang.Integer>
directedWeaklyConnected
Directed weakly connected graph.private UndirectedGraph<java.lang.Integer>
undirectedComplete
Undirected complete graph.private UndirectedGraph<java.lang.Integer>
undirectedConnected
Undirected connected graph.private UndirectedGraph<java.lang.Integer>
undirectedEmpty
Undirected empty graph.private UndirectedGraph<java.lang.Integer>
undirectedNonConnected
Undirected disconnected graph. -
Constructor Summary
Constructors Constructor Description VertexMetricsTest()
-
Method Summary
Modifier and Type Method Description void
degree()
Tets the degree of the nodes.void
inverseDegree()
Tests the inverse degree of the nodes.void
localClustCoef()
Tests the local clustering coefficient of the nodes.void
setUp()
static void
setUpClass()
void
tearDown()
static void
tearDownClass()
-
Field Details
-
directedStronglyConnected
Directed strongly connected graph. -
directedWeaklyConnected
Directed weakly connected graph. -
directedNonConnected
Directed disconnected graph (not even weakly). -
undirectedConnected
Undirected connected graph. -
undirectedNonConnected
Undirected disconnected graph. -
directedComplete
Directed complete graph. -
directedEmpty
Directed empty graph (only nodes). -
undirectedComplete
Undirected complete graph. -
undirectedEmpty
Undirected empty graph.
-
-
Constructor Details
-
VertexMetricsTest
public VertexMetricsTest()
-
-
Method Details
-
setUpClass
public static void setUpClass() -
tearDownClass
public static void tearDownClass() -
setUp
public void setUp() -
tearDown
public void tearDown() -
degree
public void degree()Tets the degree of the nodes. -
inverseDegree
public void inverseDegree()Tests the inverse degree of the nodes. -
localClustCoef
public void localClustCoef()Tests the local clustering coefficient of the nodes.
-