8#ifndef PYEXPORTGRAPH_H_INCLUDED
9#define PYEXPORTGRAPH_H_INCLUDED
14#include "boost/python.hpp"
20 namespace bp = boost::python;
21 bp::object GraphModule(bp::handle<>(bp::borrowed(PyImport_AddModule(
"FMT.Graph"))));
22 bp::scope().attr(
"Graph") = GraphModule;
23 bp::scope GraphModule_scope = GraphModule;
24 bp::scope().attr(
"__doc__") =
".. module:: Graph\n"
26 " :platform: Unix, Windows\n"
27 " :synopsis: Module used to generate graph.\n"
30 bp::class_<Graph::FMTgraphstats>(
"FMTgraphstats",
"@DocString(FMTgraphstats)")
31 .def(
"__str__", &Graph::FMTgraphstats::operator std::string,
32 "@DocString(FMTgraphstats::operator std::string)")
34 "@DocString(FMTgraphstats::cols)")
36 "@DocString(FMTgraphstats::rows)")
38 "@DocString(FMTgraphstats::vertices)")
40 "@DocString(FMTgraphstats::edges)")
42 "@DocString(FMTgraphstats::transfer_rows)")
44 "@DocString(FMTgraphstats::output_rows)")
46 "@DocString(FMTgraphstats::output_cols)");
48 bp::class_<Graph::FMTpredictor>(
"FMTpredictor",
"@DocString(FMTpredictor)")
50 "@DocString(FMTpredictor::getpredictors)")
52 "@DocString(FMTpredictor::getpredictornames)");
54 define_pylist<Graph::FMTpredictor>();
55 define_pydict<int, int>();
56 define_pylist<std::vector<Graph::FMTpredictor>>();
57 bp::enum_<Graph::FMTgraphbuild>(
"FMTsolverinterface")
65 bp::class_<Graph::FMTlinegraph>(
"FMTlinegraph",
"@DocString(FMTgraph)")
int output_cols
Number of output cols in the FMTlpsolver.
Definition: FMTgraphstats.hpp:66
int cols
Number of columns in the matrix of FMTlpsolver.
Definition: FMTgraphstats.hpp:48
int vertices
Number of verticies in the FMTgraph.
Definition: FMTgraphstats.hpp:54
int transfer_rows
Number of area transfer rows in the FMTlpsolver.
Definition: FMTgraphstats.hpp:60
int rows
Number of rows in the matrix of FMTlpsolver.
Definition: FMTgraphstats.hpp:51
int output_rows
Number of output rows in the FMTlpsolver.
Definition: FMTgraphstats.hpp:63
int edges
Number of edges in the FMTgraph.
Definition: FMTgraphstats.hpp:57
std::vector< int > getperiodactionids(const int &period) const
std::vector< std::string > getpredictornames(const std::vector< std::string > &yieldnames) const
std::vector< double > getpredictors() const
Definition: PYdefinitions.hpp:14
void exportGraph()
Definition: PYexportGraph.hpp:18