|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraph.Graph
An un-directed graph
| Nested Class Summary | |
(package private) class |
Graph.Node
An instance of this class represents one node of the graph |
| Field Summary | |
(package private) static boolean |
debug
|
(package private) Graph.Node[] |
node
The nodes of the graph. |
| Constructor Summary | |
Graph(int N,
double D)
Constructs a random graph with N nodes and (N*D)/2 edges |
|
| Method Summary | |
(package private) void |
displayEquiv(NodeInfo[] w)
Show how the nodes are divided into classes of equivalency |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static boolean debug
Graph.Node[] node
| 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()
void displayEquiv(NodeInfo[] w)
public 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 | |||||||||