|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.pcl.absurdist.graph.Graph
An un-directed graph
| Constructor Summary | |
Graph(int N,
double D)
Constructs a random graph with N nodes and (N*D)/2 edges |
|
| Method Summary | |
int |
getNodeDegree(int i)
|
int |
getNodeNeigh(int i,
int j)
|
int |
getNodeNum()
|
static void |
main(java.lang.String[] arg)
Converts a Graph to a ConceptSystem. |
boolean |
mayBeSymmetric()
Tests whether this graph may have some symmetry, by means of looking at N topological invariants of the vertices. |
boolean |
mayBeSymmetric(int maxNI)
Tests whether this graph may have some symmetry, by means of looking at topological invariants of the vertices. |
Graph |
permute(int[] p)
Permutes the graph. |
static int[] |
randomPermutation(int n)
Returns an array of integers, from 0 to n-1, randomly permuted. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Graph(int N,
double D)
throws java.lang.Exception
| Method Detail |
public int getNodeNum()
public int getNodeDegree(int i)
public int getNodeNeigh(int i,
int j)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean mayBeSymmetric()
public boolean mayBeSymmetric(int maxNI)
maxNI - How many invariants to test. If -1 is passed,
the method will test N invariants. In practice, 5 or 10 probably
would be enough for most random graphs.
public static int[] randomPermutation(int n)
public Graph permute(int[] p)
p - Permute according to this table.
public static void main(java.lang.String[] arg)
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||