Skip to content
Snippets Groups Projects
Commit 0a51e26f authored by Thibault Allenet's avatar Thibault Allenet
Browse files

Match python API doc

parent 6110d525
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,16 @@
namespace py = pybind11;
namespace Aidge {
void init_Match(py::module& m){
py::class_<Match, std::shared_ptr<Match>>(m, "Match")
py::class_<Match, std::shared_ptr<Match>>(m, "Match", "Match class stores the matched patterns resulting from a graph matching query. A matched pattern is the combinaison of the graph pattern start nodes and the set of all the nodes in the matched pattern (including the start nodes)")
.def(py::init<>())
.def("get_nb_match", &Match::getNbMatch)
.def("get_start_nodes", &Match::getStartNodes)
.def("get_match_nodes", &Match::getMatchNodes);
.def("get_nb_match", &Match::getNbMatch, R"mydelimiter(
The number of graph patterns matched
)mydelimiter")
.def("get_start_nodes", &Match::getStartNodes, R"mydelimiter(
All matched graph patterns start nodes
)mydelimiter")
.def("get_match_nodes", &Match::getMatchNodes, R"mydelimiter(
All matched graph patterns sets of matched nodes
)mydelimiter");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment