|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tk.exgerm.graphgenerator.Generate
public class Generate
Constructor Summary | |
---|---|
Generate(ICoreContext _context)
|
Method Summary | |
---|---|
void |
completeBinaryTree(int h,
String graphName)
Genriše graf u obliku binarnog drveta |
void |
completeBipartiteGraph(int n,
String graphName)
|
void |
completeGraph(int n,
String graphName)
Generiše kompletan graf - svaki čcor je povezan sa svakim |
void |
cycle(int n,
String graphName)
Genriše graf u obliku zatvorene putanje - kružnica |
void |
cycleOfCliques(int numberOfCliques,
int sizeOfClique,
String graphName)
Generiše graf u obliku kružnice za čije su čvorove vezani kompletni grafovi |
void |
hypercube(int n,
String graphName)
Generiše graf u obliku hiperkocke |
void |
path(int n,
String graphName)
Generiše graf u obliku putanje |
void |
randomConnectedGraph(int n,
int m,
String graphName)
Generiše random povezani graf. |
void |
squareMesh(int n,
String graphName)
Generiše graf u obliku mreže kvadrata |
void |
thorus(int n,
String graphName)
Generiše graf u obliku torusa |
void |
triangularMesh(int h,
String graphName)
Generiše graf u obliku mreže trouglova |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Generate(ICoreContext _context)
Method Detail |
---|
public void path(int n, String graphName)
n
- - broj čvorovagraphName
- - ime generisanog grafapublic void cycle(int n, String graphName)
n
- - broj čvorovagraphName
- - ime generisanog grafapublic void completeBinaryTree(int h, String graphName)
h
- - parametar, generiše se (2^h)-1 čvorova i (2^h)-2 vezagraphName
- - ime generisanog grafapublic void triangularMesh(int h, String graphName)
h
- - parametar, generiše se n(n-1)/2 čvorovagraphName
- - ime generisanog grafapublic void squareMesh(int n, String graphName)
h
- - parametar, generiše se n^2 čvorovagraphName
- - ime generisanog grafapublic void completeGraph(int n, String graphName)
n
- - parametargraphName
- - ime generisanog grafapublic void hypercube(int n, String graphName)
n
- - parametar, generiše se 2^n čvorovagraphName
- - ime generisanog grafapublic void completeBipartiteGraph(int n, String graphName)
public void thorus(int n, String graphName)
n
- - parametar, generiše se n^2 čvorovagraphName
- - ime generisanog grafapublic void cycleOfCliques(int numberOfCliques, int sizeOfClique, String graphName)
numberOfCliques
- - broj čvorova u kružnicisizeOfClique
- - veličina kompletnog grafagraphName
- - ime generisanog grafapublic void randomConnectedGraph(int n, int m, String graphName)
n
- - broj čvorovam
- - broj vezagraphNamee
- - ime generisanog grafa grafa
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |