#16892: Function to check if a poset containt a subposet isomorphic to another
poset
-------------------------------------+-------------------------------------
       Reporter:  jmantysalo         |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-wishlist
      Component:  combinatorics      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  
u/jmantysalo/function_to_check_if_a_poset_containt_a_subposet_isomorphic_to_another_poset|
  f13f2385d2b79adad5dae8282162d776bb8114bd
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ncohen):

 Yoooooooooooooo !
 > But if I do `self.transitive_closure()` instead of
 `DiGraph(self).transitive_closure()` I get
 >
 > {{{
 > NotImplementedError: An immutable graph does not change name
 > }}}

 That's a bug. There is no reason why computing the transitive closure of a
 graph requires that graph to be mutable (indeed, the graph itself is not
 modified: its closure is returned as a completely new graph).

 You can fix it by going into {{{src/graph/generic_graph.py}}}, and in
 function `transitive_closure` replace `copy(self)` with
 `self.copy(immutable=False)`.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/16892#comment:7>
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/d/optout.

Reply via email to