Thanks! In the meantime, since I can use igraph to write the correct format, and pipe it to sys.stdout, what would be the best hack for me to pipe stdout to a file? It feels like another line of code could get the functionality I need for the moment.
On Tue, Aug 14, 2012 at 2:54 PM, Tamás Nepusz <[email protected]> wrote: > Hmm, this is weird, but at least it gives me a clue about where to look > for bugs in my code. I'm still trying to find a RHEL machine where I could > reproduce the issue. > > -- > T. > > > On Tuesday, 14 August 2012 at 15:53, Alacast wrote: > > > Good idea! > > > > > > > g.write_pajek(sys.stdout) > > *Vertices 3 > > *Edges > > 1 2 > > 2 3 > > > > > g.write(sys.stdout, format='net') > > > > > > > > > > > *Vertices 3 > > *Edges > > 1 2 > > 2 3 > > > > > g.write(sys.stdout, format='graphml') > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > <graphml xmlns="http://graphml.graphdrawing.org/xmlns" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns > > http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> > > <!-- Created by igraph --> > > <graph id="G" edgedefault="undirected"> > > <node id="n0"> > > </node> > > <node id="n1"> > > </node> > > <node id="n2"> > > </node> > > <edge source="n0" target="n1"> > > </edge> > > <edge source="n1" target="n2"> > > </edge> > > </graph> > > </graphml> > > > > > > Thanks! > > On Mon, Aug 13, 2012 at 3:25 PM, Tamás Nepusz <[email protected] (mailto: > [email protected])> wrote: > > > Hi, > > > > > > Just out of curiosity: can you try whether g.write_pajek(sys.stdout) > works or not? > > > > > > -- > > > T. > > > > > > > > > On Monday, 13 August 2012 at 16:21, Alacast wrote: > > > > > > > Hi again, all. Does anyone have thoughts on what could be causing > these files to be written without actually including any data on the > network? > > > > > > > > Thanks! > > > > > > > > On Mon, Aug 6, 2012 at 11:14 PM, Alacast <[email protected] (mailto: > [email protected]) (mailto:[email protected])> wrote: > > > > > This is a Red Hat Linux 4.1.2-51 server, 64 bit. The examples I > gave were on ipython with the -pylab setting. I've retested with plain > Python, and it's the same story. The python versions I've tested are: > > > > > 2.7.2 > > > > > 2.7.4 (Enthought distribution, version 7.3-1) > > > > > > > > > > Thanks! > > > > > > > > > > On Mon, Aug 6, 2012 at 8:34 PM, Tamás Nepusz <[email protected](mailto: > [email protected]) (mailto:[email protected])> wrote: > > > > > > Dear Jeff, > > > > > > > > > > > > > All of these produce empty files, instead of something with > information on the graph g. What am I doing wrong? > > > > > > Theoretically you are doing everything right, so I'm guessing > that this is a platform-specific issue. What operating system are you using > and which version of Python? Is it a 32-bit or a 64-bit machine? > > > > > > > > > > > > Best, > > > > > > Tamas > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > igraph-help mailing list > > > > > > [email protected] (mailto:[email protected]) (mailto: > [email protected]) > > > > > > https://lists.nongnu.org/mailman/listinfo/igraph-help > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > igraph-help mailing list > > > > [email protected] (mailto:[email protected]) (mailto: > [email protected]) > > > > https://lists.nongnu.org/mailman/listinfo/igraph-help > > > > > > > > > > > > > > > > > > _______________________________________________ > > > igraph-help mailing list > > > [email protected] (mailto:[email protected]) > > > https://lists.nongnu.org/mailman/listinfo/igraph-help > > > > > > _______________________________________________ > > igraph-help mailing list > > [email protected] (mailto:[email protected]) > > https://lists.nongnu.org/mailman/listinfo/igraph-help > > > > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
