#15810: Immutable directed graphs should know that they are directed
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  graph theory       |   Resolution:
       Keywords:  immutable          |    Merged in:
  directed graph                     |    Reviewers:
        Authors:  Simon King         |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/15810       |  d6ca86c1d6984bc7a468b80905ddec01323cc9b6
   Dependencies:  #15623             |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ncohen):

 Because several lines above those two lines, `self._backend` is created
 using the backend's constructor, which takes the value `True/False` as an
 input.

 And well, setting the value of a private variable of the backend is the
 backend's constructor's job. So this way, the constructors of !Graph and
 !DiGraph do not mess with what they should not touch, the value of
 `_directed` is set only in the backend's constructor's code, and there is
 no fancy alias in the backend that is set where there should not be.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/15810#comment:39>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to