bicliqueviz
Class Community

java.lang.Object
  extended by bicliqueviz.Community
Direct Known Subclasses:
ListCommunity

public class Community
extends java.lang.Object

This class represents a given community in a bipartite graph It contains information about the maximal bicliques within it.

Author:
Martin Schwartz

Constructor Summary
Community(java.util.Vector<Biclique> b, int i, java.lang.String ct)
           
 
Method Summary
 java.util.HashSet<java.lang.Integer> getAllLowerNodes()
           
 java.util.HashSet<java.lang.Integer> getAllUpperNodes()
           
 java.util.Vector<Biclique> getBicliques()
           
 java.lang.String getCommType()
           
 int getID()
           
 java.lang.Integer getNumOfLowerNodes()
           
 NumberPair getNumOfOverlappingNodes(Community c)
           
 java.lang.Integer getNumOfTotalNodes()
           
 java.lang.Integer getNumOfUpperNodes()
           
 java.util.HashSet<java.lang.Integer>[] getOverlappingNodes(Community c)
           
 void incrementVertexOccurs(InfoFile info)
          Increment the vertex occurences
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Community

public Community(java.util.Vector<Biclique> b,
                 int i,
                 java.lang.String ct)
Parameters:
b - vector of maximal bicliques within the community
i - ID of the community
Method Detail

getCommType

public java.lang.String getCommType()
Returns:
the type of the community e.g. k=2,1

getID

public int getID()
Returns:
ID of the community

getBicliques

public java.util.Vector<Biclique> getBicliques()
Returns:
vector of maximal bicliques within the community

getAllUpperNodes

public java.util.HashSet<java.lang.Integer> getAllUpperNodes()
Returns:
a set of all upper nodes

getNumOfUpperNodes

public java.lang.Integer getNumOfUpperNodes()
Returns:
the number of upper nodes in the community

getAllLowerNodes

public java.util.HashSet<java.lang.Integer> getAllLowerNodes()
Returns:
a set of all lower nodes

getNumOfLowerNodes

public java.lang.Integer getNumOfLowerNodes()
Returns:
the numbder of lower nodes in the community

getNumOfTotalNodes

public java.lang.Integer getNumOfTotalNodes()
Returns:
the number of total nodes (both upper and lower) in the community

getNumOfOverlappingNodes

public NumberPair getNumOfOverlappingNodes(Community c)

getOverlappingNodes

public java.util.HashSet<java.lang.Integer>[] getOverlappingNodes(Community c)

incrementVertexOccurs

public void incrementVertexOccurs(InfoFile info)
Increment the vertex occurences

Parameters:
info - the info files

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object