nz.ac.waikato.mcennis.rat.graph.algorithm.clustering
Class NaiveImplementClique.SubGroup

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.algorithm.clustering.NaiveImplementClique.SubGroup
Enclosing class:
NaiveImplementClique

public class NaiveImplementClique.SubGroup
extends java.lang.Object

Helper class for describing sub-groups.


Field Summary
 Graph g
           
 Actor max
           
 java.util.HashSet<Actor> nodes
           
 
Constructor Summary
NaiveImplementClique.SubGroup()
           
 
Method Summary
 NaiveImplementClique.SubGroup expand(Actor a)
          Generate the next subgroup from this subgroup.
 boolean isClique()
          Evaluates whether or not this subgroup is a clique or not.
 boolean isPresent(Actor a)
          Does this subgroup contain the actor or not
 Clique makeClique()
          If this is a clique, create it from this subgroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g

public Graph g

max

public Actor max

nodes

public java.util.HashSet<Actor> nodes
Constructor Detail

NaiveImplementClique.SubGroup

public NaiveImplementClique.SubGroup()
Method Detail

isClique

public boolean isClique()
Evaluates whether or not this subgroup is a clique or not.

Returns:
is this subgroup a clique

expand

public NaiveImplementClique.SubGroup expand(Actor a)
Generate the next subgroup from this subgroup.

Parameters:
a - actor to add to this subgroup.
Returns:
next subgroup

makeClique

public Clique makeClique()
If this is a clique, create it from this subgroup

Returns:
clique representation of this subgroup

isPresent

public boolean isPresent(Actor a)
Does this subgroup contain the actor or not

Parameters:
a - actor to check existance of
Returns:
is the actor present