igraph-help
[Top][All Lists]
Advanced

[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 15:33:46 +0100

On Mon, Feb 7, 2011 at 2:13 PM, Przemek Grabowicz
<address@hidden> wrote:
> Thank you Gabor for fast answer. It was helpful.
>
> It works well, but I do not know how to export 'color-red' (and others of
> this type) attributes.
>
> E.g. V(g)$'color-red'=255; V(g)$'color-green'=255; V(g)$'color-blue'=255;
>         write.graph(g, file="glpajek.txt", format="pajek" )

This should be a backtick (`) instead of an apostrophe ('), or
alternatively, you can do

g <- set.vertex.attribute(g, "color-red", value=255)
... etc

Best,
Gabor

> does not print the attribute.
>
> Best,
> 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]