#18375: Drop the NetworkX graph backend
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.7
enhancement | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers:
theory | Work issues:
Keywords: | Commit:
Authors: | 26c47897f8b8312baf2878f323e9d7fe5541c98a
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
public/18375 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by ncohen):
> Dumb questions that I get scared about when I see this ticket: What if
people are working with NX stuff and want to use them in Sage easily?
Does this make this impossible? Also, are you suggesting dropping NX as a
standard package (assuming it still is one)?
This ticket removes a feature you probably did not know even existed:
{{{
sage: Graph([(1,2),(3,4)])._backend
<type 'sage.graphs.base.sparse_graph.SparseGraphBackend'>
sage: Graph([(1,2),(3,4)],implementation="networkx")._backend
<class 'sage.graphs.base.graph_backends.NetworkXGraphBackend'>
}}}
The 'networkx' backend only means that inside of the graph class, at a
level you are not supposed to reach except when you write low-level graph
functions, the graph is stored as a netowrkx object.
That changes nothing to the fact that networkx is still available in Sage.
You can import it, call it, and still get a networkx copy of your graphs
with `Graph.networkx_graph()`. And Sage itself still uses networkx in many
places: the stupidest example of that is `graphs.CompleteGraph`. Believe
it or not, in order to build a complete graph Sage calls networkx'
function `networkx.complete_graph(n)`.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/18375#comment:8>
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.