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>dcCalculatorDistance calculator for the directed complete network.private CompleteDistanceCalculator<java.lang.Integer>deCalculatorDistance calculator for the directed and empty network.private DirectedGraph<java.lang.Integer>directedCompleteDirected complete graph.private DirectedGraph<java.lang.Integer>directedEmptyDirected empty graph (only nodes).private DirectedGraph<java.lang.Integer>directedNonConnectedDirected disconnected graph (not even weakly).private DirectedGraph<java.lang.Integer>directedStronglyConnectedDirected strongly connected graph.private DirectedGraph<java.lang.Integer>directedWeaklyConnectedDirected weakly connected graph.private CompleteDistanceCalculator<java.lang.Integer>dncCalculatorDistance calculator for the directed and disconnected connected network.private CompleteDistanceCalculator<java.lang.Integer>dscCalculatorDistance calculator for the directed and strongly connected network.private CompleteDistanceCalculator<java.lang.Integer>dwcCalculatorDistance calculator for the directed and weakly connected network.private CompleteDistanceCalculator<java.lang.Integer>ucCalculatorDistance calculator for the undirected complete network.private CompleteDistanceCalculator<java.lang.Integer>ueCalculatorDistance calculator for the undirected and empty network.private CompleteDistanceCalculator<java.lang.Integer>uncCalculatorDistance calculator for the undirected and disconnected network.private UndirectedGraph<java.lang.Integer>undirectedCompleteUndirected complete graph.private UndirectedGraph<java.lang.Integer>undirectedConnectedUndirected connected graph.private UndirectedGraph<java.lang.Integer>undirectedEmptyUndirected empty graph.private UndirectedGraph<java.lang.Integer>undirectedNonConnectedUndirected disconnected graph.private CompleteDistanceCalculator<java.lang.Integer>uscCalculatorDistance calculator for the undirected and connected network. -
Constructor Summary
Constructors Constructor Description DistanceMetricsTest()Constructor. -
Method Summary
Modifier and Type Method Description voidaverageShortestPathLength()Test the average shortest path length.voidcloseness()Test the closeness (on its two variants) of the nodes.voiddiameter()Test the diameter of the nodes.voideccentricity()Test the eccentricity of the nodes.voidedgeBetweenness()Test the betweenness of the edges.voidgeodesics()Test the number of shortest paths between two nodes.voidnodeBetweenness()Test the betweenness of the nodes.voidsetUp()static voidsetUpClass()voidtearDown()static voidtearDownClass()
-
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.
-