Commit 57d7c7ec authored by Tiago Peixoto's avatar Tiago Peixoto

Remove C++ and Python signatures from boost::python docstrings

parent d70825df
Pipeline #427 passed with stage
in 207 minutes and 36 seconds
......@@ -30,6 +30,7 @@ void export_pagerank();
BOOST_PYTHON_MODULE(libgraph_tool_centrality)
{
python::docstring_options dopt(true, false);
export_betweenness();
export_closeness();
export_eigentrust();
......
......@@ -58,6 +58,7 @@ void get_motifs(GraphInterface& g, size_t k, boost::python::list subgraph_list,
BOOST_PYTHON_MODULE(libgraph_tool_clustering)
{
docstring_options dopt(true, false);
def("global_clustering", &global_clustering);
def("local_clustering", &local_clustering);
def("extended_clustering", &extended_clustering);
......
......@@ -27,6 +27,7 @@ void export_avg_combined_correlations();
BOOST_PYTHON_MODULE(libgraph_tool_correlations)
{
python::docstring_options dopt(true, false);
export_assortativity();
export_vertex_correlations();
export_combined_vertex_correlations();
......
......@@ -2166,6 +2166,7 @@ void get_cts(GraphInterface& gi, GraphInterface& tgi, boost::any otpos,
BOOST_PYTHON_MODULE(libgraph_tool_draw)
{
docstring_options dopt(true, false);
def("cairo_draw", &cairo_draw);
def("put_parallel_splines", &put_parallel_splines);
def("apply_transforms", &apply_transforms);
......
......@@ -36,6 +36,7 @@ using namespace boost::python;
BOOST_PYTHON_MODULE(libgraph_tool_flow)
{
docstring_options dopt(true, false);
def("edmonds_karp_max_flow", &edmonds_karp_max_flow);
def("push_relabel_max_flow", &push_relabel_max_flow);
def("kolmogorov_max_flow", &kolmogorov_max_flow);
......
......@@ -126,6 +126,7 @@ using namespace boost::python;
BOOST_PYTHON_MODULE(libgraph_tool_generation)
{
docstring_options dopt(true, false);
def("gen_graph", &generate_graph);
def("gen_sbm", &generate_sbm);
def("random_rewire", &random_rewire);
......
......@@ -442,7 +442,7 @@ void export_openmp();
BOOST_PYTHON_MODULE(libgraph_tool_core)
{
using namespace boost::python;
python::docstring_options dopt(true, false);
// numpy
do_import_array();
......
......@@ -114,6 +114,7 @@ extern void export_modularity();
BOOST_PYTHON_MODULE(libgraph_tool_inference)
{
using namespace boost::python;
docstring_options dopt(true, false);
export_blockmodel_state();
export_blockmodel_mcmc();
export_blockmodel_multicanonical();
......
......@@ -26,6 +26,7 @@ void export_planar();
BOOST_PYTHON_MODULE(libgraph_tool_layout)
{
docstring_options dopt(true, false);
export_arf();
export_fruchterman_reingold();
export_sfdp();
......
......@@ -28,6 +28,7 @@ void export_astar_implicit();
BOOST_PYTHON_MODULE(libgraph_tool_search)
{
python::docstring_options dopt(true, false);
export_bfs();
export_dfs();
export_dijkstra();
......
......@@ -49,6 +49,7 @@ void transition(GraphInterface& g, boost::any index, boost::any weight,
BOOST_PYTHON_MODULE(libgraph_tool_spectral)
{
using namespace boost::python;
docstring_options dopt(true, false);
def("adjacency", &adjacency);
def("laplacian", &laplacian);
def("norm_laplacian", &norm_laplacian);
......
......@@ -27,6 +27,7 @@ void export_sampled_distance();
BOOST_PYTHON_MODULE(libgraph_tool_stats)
{
python::docstring_options dopt(true, false);
export_parallel();
export_histograms();
export_average();
......
......@@ -68,6 +68,7 @@ void export_vertex_similarity();
BOOST_PYTHON_MODULE(libgraph_tool_topology)
{
docstring_options dopt(true, false);
def("check_isomorphism", &check_isomorphism);
def("subgraph_isomorphism", &subgraph_isomorphism);
def("get_kruskal_spanning_tree", &get_kruskal_spanning_tree);
......
......@@ -23,5 +23,6 @@ void export_search();
BOOST_PYTHON_MODULE(libgraph_tool_util)
{
python::docstring_options dopt(true, false);
export_search();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment