#19381: Refactor Graph.__init__
----------------------------+---------------------------------
Reporter: ncohen | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.9
Component: graph theory | Keywords:
Merged in: | Authors: Nathann Cohen
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------+---------------------------------
This (very unpleasant) ticket attempts to clean a bit more the content of
`Graph.__init__`.
To this end, it creates a `graph_input` modules that gathers into
individual functions the different pieces of code that build a graph from
<any other data>.
Admittedly, this is just one step toward a cleaner graph constructor, but
we are not there yet.
Nothing smart is done in this branch: the pieces of code from
`Graph.__init__` are moved to new individual functions (some
variables/parameters are renamed). One from `DiGraph.__init__` is moved
too.
In particular, some pieces of code from `DiGraph.__init__` may eventually
be merged with the functions that this branch creates, but this will be
done later.
This branch is already sufficiently long and sufficiently unpleasant to
write/review `:-/`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/19381>
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.