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: Fri, 4 Feb 2011 13:56:50 +0100

Dear Przemek,

Pajek does not support arbitrary attributes, so only the ones that are
supported are written. See them in the manual page of 'read.graph'.

Best,
Gabor

On Fri, Feb 4, 2011 at 11:50 AM, Przemek Grabowicz
<address@hidden> wrote:
>  Dear all,
>
> I am trying to export my network to Pajek format inside of R with
> igraph_nightly_0.6-2288-20110202.
>
> Edges and vertices in my network have attributes. The manual says, that the
> attributes will get printed, however it does not happen to me. Here is a
> code to try:
>
> g=graph.data.frame( data.frame(id1=1:9,id2=sample(1:9,9,replace=T),a=1,b=2),
> vertices=data.frame(id=1:9,a=5) )
> write.graph(g, file="glpajek.txt", format="pajek" )
>
> And it produces this output in my case:
>
> "glpajek.txt"
> *Vertices 9
> *Arcs
> 1 6
> 2 1
> 3 9
> 4 3
> 5 4
> 6 2
> 7 2
> 8 8
> 9 4
>
> Is there something what I'm doing wrong? I think it happened to me also with
> a bit older nightly version of igraph: igraph_nightly_0.6-1899-20100505.
>
> 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]