Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
deprecation warning gives new name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Oct 16, 2019
1 parent 96346fa commit 4b83abe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -974,15 +974,15 @@ cdef class CombinatorialPolyhedron(SageObject):
sage: P = polytopes.cyclic_polytope(3,5)
sage: C = CombinatorialPolyhedron(P)
sage: C.edge_graph()
doctest:...: DeprecationWarning: the method edge_graph of CombinatorialPolyhedron is deprecated
doctest:...: DeprecationWarning: the method edge_graph of CombinatorialPolyhedron is deprecated; use vertex_graph
See https://trac.sagemath.org/28603 for details.
Graph on 5 vertices
sage: G = C.edge_graph()
sage: sorted(G.degree())
[3, 3, 4, 4, 4]
"""
from sage.misc.superseded import deprecation
deprecation(28603, "the method edge_graph of CombinatorialPolyhedron is deprecated")
deprecation(28603, "the method edge_graph of CombinatorialPolyhedron is deprecated; use vertex_graph")
return Graph(self.edges(names=names), format="list_of_edges")

def ridges(self, add_equalities=False, names=True):
Expand Down

0 comments on commit 4b83abe

Please sign in to comment.