@PublicationReference(author="Tanmoy Chakraborty, Sriram Srinivasan, Niloy Ganguly, Animesh Mukherjee, and Sanjukta Bhowmick", title="On the permanence of vertices in network communities", year=2014, type=Conference) public class Permanence<NodeNameType> extends java.lang.Object
Constructor and Description |
---|
Permanence(DirectedNodeEdgeGraph<NodeNameType> graph,
int maxNumPasses,
double minPermanenceGain)
Initialize the class with the input graph and parameters
|
Modifier and Type | Method and Description |
---|---|
double |
permanence()
Returns the permanence discovered by running solveCommunities.
|
NodePartitioning<NodeNameType> |
solveCommunities()
Performs the actual permanence-maximization computation and returns the
resulting partitioning.
|
public Permanence(DirectedNodeEdgeGraph<NodeNameType> graph, int maxNumPasses, double minPermanenceGain)
graph
- The graph to be partitionedmaxNumPasses
- The maximum number of passes to performminPermanenceGain
- The minimum permanence gain to be considered for
each iterationpublic NodePartitioning<NodeNameType> solveCommunities()
public double permanence()