|
From: | Abel Vertesy |
Subject: | [igraph] node names after decomposition |
Date: | Mon, 02 Jan 2012 16:01:26 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.25) Gecko/20111213 Lightning/1.0b2 Thunderbird/3.1.17 |
Dear Gabor, 1. ) is it possible to keep the node names after graph decomposition? See below: (in R) > g4[,1:2] from to 346 110 162 343 > graph.edgelist(as.matrix(g4[,1:2]), directed=TRUE) Vertices: 347 Edges: 2 Directed: TRUE Edges: [0] 346 -> 110 [1] 162 -> 343 > decompose.graph(g.AC, mode = "weak", max.comps = NA, min.vertices = 2) [[1]] Vertices: 2 Edges: 1 Directed: TRUE Edges: e e [0] 1 -> 0 [[2]] Vertices: 2 Edges: 1 Directed: TRUE Edges: e e [0] 0 -> 1 So, instead of 0-1, 1-0 I would like to get 346 -> 110 and 162 -> 343 respectively. 2.) Direction 1->0 in the first component and 0->1 in the second are named simply after the bigger/smaller original values (346>110 but 162<343) Thanks, Abel |
[Prev in Thread] | Current Thread | [Next in Thread] |