#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:  16909              |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jmantysalo):

 OK, so we have same view on default behaviour. Good. And so it is possible
 to make this function first and expand it later.

 But I'll also check if I can make a function to get subposets. This seems
 to work:

 {{{
 def isomorphic_subposets(A, B):
     return [A.subposet(x) for x in
 
A.hasse_diagram().transitive_closure().subgraph_search_iterator(B.hasse_diagram().transitive_closure(),
 induced=True)]
 }}}

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