@@ -1445,10 +1445,10 @@ PyObject *igraphmodule_Graph_is_biconnected(igraphmodule_GraphObject *self, PyOb
14451445/** \ingroup python_interface_graph
14461446 * \brief Decides whether there is an edge from a given vertex to an other one.
14471447 * \return Py_True if the vertices are directly connected, Py_False otherwise
1448- * \sa igraph_are_connected
1448+ * \sa igraph_are_adjacent
14491449 */
1450- PyObject *igraphmodule_Graph_are_connected (igraphmodule_GraphObject * self,
1451- PyObject * args, PyObject * kwds)
1450+ PyObject *igraphmodule_Graph_are_adjacent (igraphmodule_GraphObject * self,
1451+ PyObject * args, PyObject * kwds)
14521452{
14531453 static char *kwlist[] = { "v1", "v2", NULL };
14541454 PyObject *v1, *v2;
@@ -1464,7 +1464,7 @@ PyObject *igraphmodule_Graph_are_connected(igraphmodule_GraphObject * self,
14641464 if (igraphmodule_PyObject_to_vid(v2, &idx2, &self->g))
14651465 return NULL;
14661466
1467- if (igraph_are_connected (&self->g, idx1, idx2, &res))
1467+ if (igraph_are_adjacent (&self->g, idx1, idx2, &res))
14681468 return igraphmodule_handle_igraph_error();
14691469
14701470 if (res)
@@ -14554,10 +14554,10 @@ struct PyMethodDef igraphmodule_Graph_methods[] = {
1455414554 // STRUCTURAL PROPERTIES OF GRAPHS //
1455514555 /////////////////////////////////////
1455614556
14557- // interface to igraph_are_connected
14558- {"are_connected ", (PyCFunction) igraphmodule_Graph_are_connected ,
14557+ // interface to igraph_are_adjacent
14558+ {"are_adjacent ", (PyCFunction) igraphmodule_Graph_are_adjacent ,
1455914559 METH_VARARGS | METH_KEYWORDS,
14560- "are_connected (v1, v2)\n--\n\n"
14560+ "are_adjacent (v1, v2)\n--\n\n"
1456114561 "Decides whether two given vertices are directly connected.\n\n"
1456214562 "@param v1: the ID or name of the first vertex\n"
1456314563 "@param v2: the ID or name of the second vertex\n"
0 commit comments