#1314: graphs: calculate tutte polynomial
-------------------------------------+-------------------------------------
Reporter: jason | Owner: rlm
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.1
Component: graph theory | Resolution:
Keywords: tutte, graph | Merged in:
Authors: Mike Hansen, | Reviewers: Jernej Azarija,
Frédéric Chapoton, Jernej Azarija | Nathann Cohen
Report Upstream: N/A | Work issues:
Branch: public/1314 | Commit:
Dependencies: | 63b04872bc064f46b2856b63e9fc2d4a4e1b2839
| Stopgaps:
-------------------------------------+-------------------------------------
Comment (by tscrim):
Okay, `@cached_function` doesn't work because we can't pass a key function
to it... (aside: I think such a feature would be quite useful) Back to the
custom `@_cache`.
With my changes (including some other optimizations):
{{{
sage: P = graphs.PetersenGraph()
sage: %timeit P.tutte_polynomial()
1 loops, best of 3: 256 ms per loop
}}}
Before:
{{{
sage: P = graphs.PetersenGraph()
sage: %timeit P.tutte_polynomial()
1000 loops, best of 3: 1.08 ms per loop
}}}
Now I'm currently perplexed...currently the best involves extra if
statements, creation of parents, and unused arguments being passed. So we
might just want to merge `6ef434e` instead. Still testing stuff...
--
Ticket URL: <http://trac.sagemath.org/ticket/1314#comment:71>
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.