python: add wrapper on twa_graph::edges()

* spot/twa/twagraph.hh (edges): Do not hide from SWIG.
* spot/graph/graph.hh: Hide stuff that SWIG do not understand.
* python/spot/impl.i: Add some typemaps and fragment to
iterate over the result of twa_graph::edges().
This commit is contained in:
Laurent XU 2016-03-08 15:59:14 +01:00 committed by Alexandre Duret-Lutz
parent cd661801df
commit 1eee12b8b4
3 changed files with 31 additions and 4 deletions

View file

@ -408,11 +408,20 @@ namespace spot
auto states()
SPOT_RETURN(g_.states());
auto edges() const
SPOT_RETURN(g_.edges());
auto edges()
SPOT_RETURN(g_.edges());
internal::all_trans<const graph_t>
edges() const
{
return g_.edges();
}
#endif
internal::all_trans<graph_t>
edges()
{
return g_.edges();
}
#ifndef SWIG
auto edge_vector() const
SPOT_RETURN(g_.edge_vector());
auto edge_vector()