#18828: Export graph to file
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_work
Type: | Milestone: sage-6.8
enhancement | Resolution:
Priority: major | Merged in:
Component: graph | Reviewers:
theory | Work issues:
Keywords: | Commit:
Authors: | 1bd29e566d28ac731e920d8aa6c70913ede27cb0
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/18828 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by ncohen):
Hello,
> The patchbot reports compilation errors associated with ticket #18746. I
don't know why...
> Actually I have the same issue when I try to compile my develop branch,
and so I'm currently unable to test this patch.
I had the same problem. Can be solved by removing all the cython cached
files that you can find:
{{{
./src/build/temp.linux-x86_64-2.7/sage/graphs/graph_decompositions
./src/build/temp.linux-
x86_64-2.7/home/ncohen/.Sage/src/build/cythonized/sage/graphs/graph_decompositions
./src/build/cythonized/sage/graphs/graph_decompositions
./src/build/cython_debug/cython_debug_info_sage.graphs.graph_decompositions*
./src/build/lib.linux-x86_64-2.7/sage/graphs/graph_decompositions
./local/lib/python2.7/site-packages/sage/graphs/graph_decompositions
}}}
And then it works. That's trouble for the patchbots, though.
> Concerning this ticket. Don't feel guilty to steal networkx. It is very
useful and we will certainly also have to do the same for reading graphs
from file.
Yep.
> I suggest to change the way you guess the file format with something
like:
> {{{
> for ext in formats:
> if filename.endswith('.'+ext):
> break
> finally:
> raise ...
> }}}
Why? It is longer, and does the same. None of the extensions contains a
point.
> With networkx it is possible to give extension like `.edgelist.gz` in
which case the file should be compressed (at least with version 1.9.1, but
we only have 1.8.1). See
https://networkx.github.io/documentation/latest/reference/generated/networkx.readwrite.edgelist.write_edgelist.html
So you want to add all combinations of `.edgelist.gz, edgelist.tgz,..` for
all possible combinations to the dictionary of extensions? `O_o`
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/18828#comment:5>
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.