#17132: Perfect Matchings for Graphs
-------------------------------------+-------------------------------------
Reporter: ayyer | Owner:
Type: task | Status: new
Priority: minor | Milestone: sage-6.4
Component: graph theory | Resolution:
Keywords: perfect | Merged in: 6.3
matchings, graphs | Reviewers:
Authors: Arvind Ayyer | Work issues:
Report Upstream: N/A | Commit:
Branch: | 18d641858474d73a3e7dd3e5c02e2baecca2aa14
public/ayyer/perfect_matchings | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by ncohen):
Hello !
You do not need fo create a new file for a function like that. Add it in
`graph.py`, it will be easier.
About your bugs
1) When in the console 'copy' is automatically imported, but this is not
the case in Sage code. You need either to import it before you use it with
"from copy import copy" or else use the 'copy' methods defined on graphs,
i.e. `H=G.copy()`
2) What you want to do is `from sage.graphs.perfect_matchings import
perfect_matchings`. You want to import the function `perfect_matchings`
defined in the module `sage.graphs.perfect_matchings`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/17132#comment:3>
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.