Package es.uam.eps.ir.relison.metrics
Class CommunityMetrics
java.lang.Object
es.uam.eps.ir.relison.metrics.CommunityMetrics
public class CommunityMetrics
extends java.lang.Object
Automated unit tests for community metrics.
-
Field Summary
Fields Modifier and Type Field Description private DirectedGraph<java.lang.Integer>
directedComplete
Directed complete graphprivate 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 graphprivate UndirectedGraph<java.lang.Integer>
undirectedConnected
Undirected connected graphprivate UndirectedGraph<java.lang.Integer>
undirectedEmpty
Undirected empty graphprivate UndirectedGraph<java.lang.Integer>
undirectedNonConnected
Undirected disconnected graph -
Constructor Summary
Constructors Constructor Description CommunityMetrics()
-
Method Summary
Modifier and Type Method Description void
communityDegree()
void
communityGini()
void
communityPairGini()
void
communitySize()
void
modularity()
void
setUp()
static void
setUpClass()
void
tearDown()
static void
tearDownClass()
void
weakTies()
-
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
-
CommunityMetrics
public CommunityMetrics()
-
-
Method Details
-
setUpClass
public static void setUpClass() -
tearDownClass
public static void tearDownClass() -
setUp
public void setUp() -
tearDown
public void tearDown() -
communityGini
public void communityGini() -
communityPairGini
public void communityPairGini() -
modularity
public void modularity() -
weakTies
public void weakTies() -
communityDegree
public void communityDegree() -
communitySize
public void communitySize()
-