|
From: | Wang Bing |
Subject: | Re: [igraph] Data structure of network |
Date: | Wed, 10 Apr 2013 10:05:53 +0900 |
Hi dear all,Could someone tell me what the data structure of network in the following code? Orhow can I visit any node in this network?import igraph as nxnet_path = "/home/username/Documents/karate.gml"network = nx.read(net_path)print networkBTW, after I print it out, it shows:IGRAPH U--- 34 78 --+ attr: id (v)+ edges:0 -- 1 2 3 4 5 6 7 8 10 11 12 13 17 19 21 311 -- 0 2 3 7 13 17 19 21 302 -- 0 1 3 7 8 9 13 27 28 323 -- 0 1 2 7 12 134 -- 0 6 105 -- 0 6 10 166 -- 0 4 5 167 -- 0 1 2 38 -- 0 2 30 32 339 -- 2 3310 -- 0 4 511 -- 012 -- 0 313 -- 0 1 2 3 3314 -- 32 3315 -- 32 3316 -- 5 617 -- 0 118 -- 32 3319 -- 0 1 3320 -- 32 3321 -- 0 122 -- 32 3323 -- 25 27 29 32 3324 -- 25 27 3125 -- 23 24 3126 -- 29 3327 -- 2 23 24 3328 -- 2 31 3329 -- 23 26 32 3330 -- 1 8 32 3331 -- 0 24 25 28 32 3332 -- 2 8 14 15 18 20 22 23 29 30 31 3333 -- 8 9 13 14 15 18 19 20 22 23 26 27 28 29 30 31 32
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |