| 1 |
|
|---|
| 2 | #ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|---|
| 3 | #error The transitive closure algorithm uses partial specialization.
|
|---|
| 4 | #endif
|
|---|
| 5 |
|
|---|
| 6 | #include <iostream>
|
|---|
| 7 | #include <boost/graph/transitive_closure.hpp>
|
|---|
| 8 | #include <boost/graph/graph_utility.hpp>
|
|---|
| 9 | //#include <boost/graph/adjacency_list.hpp>
|
|---|
| 10 |
|
|---|
| 11 | using namespace boost;
|
|---|
| 12 | using namespace std;
|
|---|
| 13 |
|
|---|
| 14 | int main()
|
|---|
| 15 | {
|
|---|
| 16 | typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS> DepGraphType;
|
|---|
| 17 | DepGraphType macroDep(100000);
|
|---|
| 18 | DepGraphType macroDepTC;
|
|---|
| 19 | boost::transitive_closure(macroDep, macroDepTC);
|
|---|
| 20 | cout << "OK!";
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | // g++ -I/usr/share/R/include -DNDEBUG -I"/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include" -I"/opt/R/x86_64-pc-linux-gnu-library/3.2/RcppEigen/include" -I"/opt/R/x86_64-pc-linux-gnu-library/3.2/StanHeaders/include" -I"/opt/R/x86_64-pc-linux-gnu-library/3.2/BH/include" -I"/opt/R/x86_64-pc-linux-gnu-library/3.2/rpf/include" -Wall -Wextra -Wno-unknown-pragmas -Wno-unused-parameter -Wvla -Wno-unused-local-typedefs -fdiagnostics-color=auto -DOMX_BOUNDS_CHECK -D_GLIBCXX_DEBUG -g3 -fno-inline -fno-inline-small-functions -fno-default-inline -O0 -fmax-errors=1 -UNDEBUG -fpic -g -Wvla -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 tc.cpp -o tc
|
|---|