|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.blockmodel.EquivalenceRelation
public class EquivalenceRelation
An EquivalenceRelation holds a number of Equivalent vertices from the same graph. created Feb 3, 2004
Constructor Summary | |
---|---|
EquivalenceRelation(Set rv,
Graph g)
Input is the basic data structure underneath: a Set of Sets. |
Method Summary | |
---|---|
Iterator |
getAllEquivalences()
Iterates through all the equivalence sets. |
Set |
getEquivalenceRelationContaining(Vertex v)
Returns the part of the relation that contains this vertex: it is, of course, a Set If the vertex does not belong to any relation, null is returned. |
Graph |
getGraph()
Returns the common graph to which all the vertices belong |
Set |
getSingletonVertices()
Returns the set of vertices that do not belong to an particular equivalence class. |
int |
numRelations()
Returns the number of relations defined. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EquivalenceRelation(Set rv, Graph g)
Method Detail |
---|
public Graph getGraph()
public Set getSingletonVertices()
public Iterator getAllEquivalences()
public Set getEquivalenceRelationContaining(Vertex v)
public int numRelations()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |