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

Commit

Permalink
Trac #33174: Unreachable code in sage/graphs/base/c_graph.pyx
Browse files Browse the repository at this point in the history
The body of this function is unreachable,

{{{#!python
cdef bint _has_labeled_edge_unsafe(self, int u_int, int v_int, object l)
except -1:
    """
    Return whether ``self`` has an arc specified by indices of the
vertices
    and an arc label.
    """
    raise NotImplementedError
    cdef int l_int
    if l is None:
        l_int = 0
    else:
        l_int = self.new_edge_label(l)
    return self.cg().has_arc_unsafe(u_int, v_int, l_int)
}}}

Is it just an oversight?

URL: https://trac.sagemath.org/33174
Reported by: mjo
Ticket author(s): David Coudert
Reviewer(s): Michael Orlitzky
  • Loading branch information
Release Manager committed Feb 5, 2022
2 parents ed2d6d0 + 7852073 commit 011b9c4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/sage/graphs/base/c_graph.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2600,12 +2600,6 @@ cdef class CGraphBackend(GenericGraphBackend):
and an arc label.
"""
raise NotImplementedError
cdef int l_int
if l is None:
l_int = 0
else:
l_int = self.new_edge_label(l)
return self.cg().has_arc_unsafe(u_int, v_int, l_int)

cdef int free_edge_label(self, int l_int) except -1:
raise NotImplementedError()
Expand Down

0 comments on commit 011b9c4

Please sign in to comment.