#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:         |
-------------------------+-------------------------------------------------
Changes (by dcoudert):

 * status:  needs_review => needs_work


Comment:

 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.

 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.

 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 ...
 }}}
 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

 David.

--
Ticket URL: <http://trac.sagemath.org/ticket/18828#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.

Reply via email to