[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] A problem with exporting to pajek format

From: Gábor Csárdi
Subject: Re: [igraph] A problem with exporting to pajek format
Date: Mon, 7 Feb 2011 17:51:42 +0100

On Mon, Feb 7, 2011 at 5:03 PM, Przemek Grabowicz
<address@hidden> wrote:
>  On 02/07/2011 04:54 PM, Gábor Csárdi wrote:
>> Ooops, you're right, I didn't know it works with apostrophes. The
>> attributes are indeed not written. This is a bug, thanks for letting
>> us know:
>> https://bugs.launchpad.net/igraph/+bug/714670
>> We'll fix it soon, in the meanwhile you can use the named colors,
>> there is a list here:
> It seems that it doesn't work for edges neither.

Strange, the following works for me properly:

V(g)$color <- "red"
write.graph(g, format="pajek", file="/tmp/test.net")

and I get

*Vertices 10
1 "1" ic "red"
2 "2" ic "red"
3 "3" ic "red"
4 "4" ic "red"

> Could you tell me how long,
> more or less, will it take to repair it, please?

I have some busy days now, so a week probably. But actually the Pajek
format is very simple (to write at least), you could write a small R
function that does the job.


> Thank you for your answers,
> Przemek.
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Gabor Csardi <address@hidden>     UNIL DGM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]