Skip to content

Commit

Permalink
rewrited the whole program
Browse files Browse the repository at this point in the history
There is much more sense now.
Meaningfull classes and methods are provided.
  • Loading branch information
idmitrievsky committed Dec 2, 2013
1 parent c00207a commit 15aa0ee
Show file tree
Hide file tree
Showing 7 changed files with 334 additions and 270 deletions.
17 changes: 10 additions & 7 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@
//

#include <iostream>
#include "nonisotrees.h"
#include "nonisotreesgen.h"

int main(int argc, const char * argv[])
{
unsigned verticesNumber = 3;
TreeForm form(verticesNumber);
unsigned verticesNumber = 4;
Generator gen(verticesNumber);
Layout *lay = 0;

while (!form.hasSimpleStructure())
while ((lay = gen.giveNext()))
{
// print
form = TreeBuild::buildForm(form);
lay->pprint();
std::cout << '\n';
delete lay;
}
// print out

std::cout << "\nOverall generated: " << gen.lastGenerationStrength << "\n\n";

return 0;
}
Expand Down
223 changes: 0 additions & 223 deletions nonisotrees.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions nonisotrees.h

This file was deleted.

Loading

0 comments on commit 15aa0ee

Please sign in to comment.