#14396: ISGCI update, small graphs and recognition
-------------------------+-------------------------------------------------
Reporter: | Owner: jason, ncohen, rlm
ncohen | Status: needs_review
Type: | Milestone: sage-6.4
enhancement | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers: David Coudert
theory | Work issues:
Keywords: | Commit:
Authors: | f287feee7a4e8ff6a52864191d655924b86448ed
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/14396 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by dcoudert):
In the description of method {{{graph_classes.smallgraphs}}} is weird:
{{{
sage: graph_classes.smallgraphs?
Type: CachedMethodCallerNoArgs
String form: Cached version of <function smallgraphs at 0x1132b62a8>
File: /Users/dcoudert/sage/local/lib/python2.7/site-
packages/sage/misc/cachefunc.so
Definition: graph_classes.smallgraphs(self)
Docstring:
Returns a dictionary associating a graph to a graph description
string.
Upon the first call, this loads the database from the local XML
files. Subsequent calls are cached.
EXAMPLES:
sage: t = graph_classes.inclusions()
sage: type(t)
<type 'list'>
sage: t[0]
{'sub': 'gc_1', 'super': 'gc_2'}
Class docstring:
Utility class that is used by "CachedMethod" to bind a cached
method to an instance, in the case of a method that does not accept
any arguments except "self".
Note: The return value "None" would not be cached. So, if you
have a method that does not accept arguments and may return
"None" after a lengthy computation, then "@cached_method" should
not be used.
EXAMPLE:
sage: P.<a,b,c,d> = QQ[]
sage: I = P*[a,b]
sage: I.gens
Cached version of <function gens at 0x...>
sage: type(I.gens)
<type 'sage.misc.cachefunc.CachedMethodCallerNoArgs'>
sage: I.gens is I.gens
True
sage: I.gens() is I.gens()
True
AUTHOR:
* Simon King (2011-04)
Init docstring:
EXAMPLES:
sage: class Foo:
....: def __init__(self, x):
....: self._x = x
....: @cached_method
....: def f(self):
....: return self._x^2
sage: a = Foo(2)
sage: print a.f.get_cache()
None
sage: a.f()
4
sage: a.f.get_cache()
4
Call docstring:
Call the cached method.
EXAMPLE:
sage: P.<a,b,c,d> = QQ[]
sage: I = P*[a,b]
sage: I.gens() # indirect doctest
[a, b]
sage: I.gens() is I.gens()
True
}}}
Furthermore, the example exposes {{{graph_classes.inclusions()}}} but not
{{{graph_classes.smallgraphs()}}}.
The rest seems ok.
David.
--
Ticket URL: <http://trac.sagemath.org/ticket/14396#comment:14>
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.