[Top][All Lists]

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

[igraph] A problem with exporting to pajek format

From: Przemek Grabowicz
Subject: [igraph] A problem with exporting to pajek format
Date: Fri, 04 Feb 2011 11:50:40 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100608 Thunderbird/3.1

 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:

*Vertices 9
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.


reply via email to

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