mirror of
https://github.com/Andreabont/CppExperiments.git
synced 2025-07-12 02:25:07 +00:00
17 lines
299 B
C++
17 lines
299 B
C++
#include <iostream>
|
|
#include "TopologicalSorting.h"
|
|
|
|
int main() {
|
|
|
|
DependencyTree a;
|
|
|
|
a.insertDependency(1,2);
|
|
a.insertDependency(1,3);
|
|
a.insertDependency(2,4);
|
|
a.insertDependency(3,4);
|
|
|
|
for(auto &i : a.getOrder()) {
|
|
std::cout << i << std::endl;
|
|
}
|
|
|
|
}
|