#19296: Generating function in FindStat interface
-------------------------------------+-------------------------------------
       Reporter:  stumpc5            |        Owner:
           Type:  enhancement        |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.9
      Component:  packages:          |   Resolution:
  optional                           |    Merged in:
       Keywords:  FindStat, OEIS     |    Reviewers:  Martin Rubey
        Authors:  Christian Stump    |  Work issues:  document
Report Upstream:  N/A                |       Commit:
         Branch:                     |  4d6e9eb840d59a6b2b3b0446b1162d19eb6dc893
  u/mantepse/generating_function_in_findstat_interface|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by stumpc5):

 Okay, the following is really nice as you do it:
 {{{
 sage: g = Graph([[1,2],[2,3]])
 sage: h = Graph([[1,3],[2,3]])
 sage: i = Graph([[1,3],[2,3],[2,4]])
 sage: findstat( [([g,h,i],[1,1,1])] )
 ---------------------------------------------------------------------------
 ...
 ValueError: FindStat expects that every object occurs at most once.
 }}}
 There is no change to do that without your normalization procedure. I was
 suggesting only to replace the {{{len(set(all_entries)) ==
 len(all_entries)}}} by a short method to check that {{{all_entries}}} is a
 duplicate-free list. That is a one-liner and does what we did before
 slower but for non-hashable objects. But it does also not achieve the
 normalization.

 As long as the timings are okay (and I haven't seen any issues so far, but
 sending a zillion might be a problem) I am happy with your solution...

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