Skip to content

Commit 2b22924

Browse files
author
Release Manager
committed
gh-36076: Remove deprecated parameter circular from method `is_planar` Remove deprecated parameter `circular` from method `is_planar`. The deprecation was introduced in #33759. ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #36076 Reported by: David Coudert Reviewer(s): Frédéric Chapoton
2 parents a00ac4f + f46b6e7 commit 2b22924

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/sage/graphs/planarity.pyx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cdef extern from "planarity/graph.h":
3030
cdef int gp_SortVertices(graphP theGraph)
3131

3232

33-
def is_planar(g, kuratowski=False, set_pos=False, set_embedding=False, circular=None):
33+
def is_planar(g, kuratowski=False, set_pos=False, set_embedding=False):
3434
r"""
3535
Check whether ``g`` is planar using Boyer's planarity algorithm.
3636
@@ -55,8 +55,6 @@ def is_planar(g, kuratowski=False, set_pos=False, set_embedding=False, circular=
5555
combinatorial embedding returned (see
5656
:meth:`~sage.graphs.generic_graph.GenericGraph.get_embedding`)
5757
58-
- ``circular`` -- deprecated argument
59-
6058
EXAMPLES::
6159
6260
sage: G = graphs.DodecahedralGraph()
@@ -98,10 +96,6 @@ def is_planar(g, kuratowski=False, set_pos=False, set_embedding=False, circular=
9896
....: assert (hasattr(G, '_pos') and G._pos is not None) == set_pos, (set_embedding, set_pos)
9997
10098
"""
101-
if circular is not None:
102-
from sage.misc.superseded import deprecation
103-
deprecation(33759, 'the circular argument of is_planar is deprecated and has no effect')
104-
10599
if set_pos and not g.is_connected():
106100
raise ValueError("is_planar() cannot set vertex positions for a disconnected graph")
107101

0 commit comments

Comments
 (0)