|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcommon.CSGI
Concept System Graph Interface (CSGI) allows us to access the information about a ConceptSystem as if it were a standard graph. The main advantage of using this interface consists in enabling us to directly access the "neighbor list" for each node, without having to query the hash table for each possible pair. This is analogous to using a sparse-matrix representation as compared to a dense matrix.
| Constructor Summary | |
CSGI(ConceptSystem s)
Creates a CSGI representation for a ConceptSystem |
|
| Method Summary | |
int |
degree(int j)
The degree of node j |
int |
getMaxDgrConceptIdx()
The index of the node that has the largest degree. |
int |
getMinDgrConceptIdx()
The index of the node that has the lowest degree. |
int[] |
getNei(int j)
Returns the sorted list of nodes connected to the node j |
int[] |
getNeiPlus(int j)
Returns the sorted list of nodes connected to the node j, plus j itself |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CSGI(ConceptSystem s)
throws java.lang.IllegalArgumentException
| Method Detail |
public int[] getNei(int j)
public int[] getNeiPlus(int j)
public int degree(int j)
public int getMaxDgrConceptIdx()
public int getMinDgrConceptIdx()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||