Package es.uam.eps.ir.relison.metrics
Class DistanceMetricsTest
java.lang.Object
es.uam.eps.ir.relison.metrics.DistanceMetricsTest
public class DistanceMetricsTest
extends java.lang.Object
Automatic unit tests for distance-based metrics.
-
Field Summary
Fields Modifier and Type Field Description private CompleteDistanceCalculator<java.lang.Integer>
dcCalculator
Distance calculator for the directed complete network.private CompleteDistanceCalculator<java.lang.Integer>
deCalculator
Distance calculator for the directed and empty network.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 CompleteDistanceCalculator<java.lang.Integer>
dncCalculator
Distance calculator for the directed and disconnected connected network.private CompleteDistanceCalculator<java.lang.Integer>
dscCalculator
Distance calculator for the directed and strongly connected network.private CompleteDistanceCalculator<java.lang.Integer>
dwcCalculator
Distance calculator for the directed and weakly connected network.private CompleteDistanceCalculator<java.lang.Integer>
ucCalculator
Distance calculator for the undirected complete network.private CompleteDistanceCalculator<java.lang.Integer>
ueCalculator
Distance calculator for the undirected and empty network.private CompleteDistanceCalculator<java.lang.Integer>
uncCalculator
Distance calculator for the undirected and disconnected network.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.private CompleteDistanceCalculator<java.lang.Integer>
uscCalculator
Distance calculator for the undirected and connected network. -
Constructor Summary
Constructors Constructor Description DistanceMetricsTest()
Constructor. -
Method Summary
Modifier and Type Method Description void
averageShortestPathLength()
Test the average shortest path length.void
closeness()
Test the closeness (on its two variants) of the nodes.void
diameter()
Test the diameter of the nodes.void
eccentricity()
Test the eccentricity of the nodes.void
edgeBetweenness()
Test the betweenness of the edges.void
geodesics()
Test the number of shortest paths between two nodes.void
nodeBetweenness()
Test the betweenness 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. -
dscCalculator
Distance calculator for the directed and strongly connected network. -
dwcCalculator
Distance calculator for the directed and weakly connected network. -
dncCalculator
Distance calculator for the directed and disconnected connected network. -
uscCalculator
Distance calculator for the undirected and connected network. -
uncCalculator
Distance calculator for the undirected and disconnected network. -
dcCalculator
Distance calculator for the directed complete network. -
ucCalculator
Distance calculator for the undirected complete network. -
deCalculator
Distance calculator for the directed and empty network. -
ueCalculator
Distance calculator for the undirected and empty network.
-
-
Constructor Details
-
DistanceMetricsTest
public DistanceMetricsTest()Constructor.
-
-
Method Details
-
setUpClass
public static void setUpClass() -
tearDownClass
public static void tearDownClass() -
setUp
public void setUp() -
tearDown
public void tearDown() -
nodeBetweenness
public void nodeBetweenness()Test the betweenness of the nodes. -
edgeBetweenness
public void edgeBetweenness()Test the betweenness of the edges. -
averageShortestPathLength
public void averageShortestPathLength()Test the average shortest path length. -
eccentricity
public void eccentricity()Test the eccentricity of the nodes. -
diameter
public void diameter()Test the diameter of the nodes. -
geodesics
public void geodesics()Test the number of shortest paths between two nodes. -
closeness
public void closeness()Test the closeness (on its two variants) of the nodes.
-