spielwiese
Last change
on this file since dffd154 was
dffd154,
checked in by Yue Ren <ren@…>, 10 years ago
|
chg: status update 20.09.
|
-
Property mode set to
100644
|
File size:
828 bytes
|
Rev | Line | |
---|
[3c0aa5] | 1 | #include <groebnerCone.h> |
---|
| 2 | |
---|
| 3 | groebnerCones tropicalTraversal(const groebnerCone startingCone) |
---|
| 4 | { |
---|
| 5 | groebnerCones tropicalVariety; |
---|
| 6 | groebnerCones workingList; |
---|
| 7 | workingList.insert(startingCone); |
---|
| 8 | while(!workingList.empty()) |
---|
| 9 | { |
---|
[dffd154] | 10 | std::cout << "starting traversal" << std::endl; |
---|
[3c0aa5] | 11 | const groebnerCone sigma=*(workingList.begin()); |
---|
| 12 | const groebnerCones neighbours = sigma.tropicalNeighbours(); |
---|
[eb836c] | 13 | for (groebnerCones::iterator tau = neighbours.begin(); tau!=neighbours.end(); tau++) |
---|
| 14 | { |
---|
| 15 | if (tropicalVariety.count(*tau)==0) |
---|
| 16 | workingList.insert(*tau); |
---|
| 17 | } |
---|
[3c0aa5] | 18 | tropicalVariety.insert(sigma); |
---|
| 19 | workingList.erase(sigma); |
---|
[dffd154] | 20 | std::cout << "tropicalVariety.size():" << tropicalVariety.size() << std::endl; |
---|
| 21 | std::cout << "workingList.size():" << workingList.size() << std::endl; |
---|
[3c0aa5] | 22 | } |
---|
| 23 | return tropicalVariety; |
---|
| 24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.