|
||||||||||
| 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<V,E>
public class EquivalenceRelation<V,E>
An EquivalenceRelation holds a number of Equivalent vertices from the same graph. created Feb 3, 2004
| Constructor Summary | |
|---|---|
EquivalenceRelation(Set<Set<V>> rv,
Graph<V,E> g)
Input is the basic data structure underneath: a Set of Sets. |
|
| Method Summary | |
|---|---|
Iterator<Set<V>> |
getAllEquivalences()
Iterates through all the equivalence sets. |
Set<V> |
getEquivalenceRelationContaining(V 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<V,E> |
getGraph()
Returns the common graph to which all the vertices belong |
Set<V> |
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<Set<V>> rv,
Graph<V,E> g)
| Method Detail |
|---|
public Graph<V,E> getGraph()
public Set<V> getSingletonVertices()
public Iterator<Set<V>> getAllEquivalences()
public Set<V> getEquivalenceRelationContaining(V 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 | |||||||||