[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] get.adgedgelist suggests non existing loop
From: |
Hermann Norpois |
Subject: |
[igraph] get.adgedgelist suggests non existing loop |
Date: |
Sun, 16 Feb 2014 17:58:11 +0100 |
Hello,
I observed the phenomenon that the first vertex suggests to be connected to itself - following the command get.adjelist. But this is not the case. Did I miss anything?
Thanks Hermann
Example:
get.adjedgelist (huz)
$rs112856858
[1] 1 2 3 4 5 6 7
$rs7366404
[1] 8 9
$rs117086422
[1] 1 10 11 12 13 14 15
...
It is not the case for:
str (huz)
IGRAPH UNW- 11 31 --
+ attr: name (v/c), x (v/n), y (v/n), weight (e/n)
+ edges (vertex names):
rs112856858 -- rs117086422, rs57760052, rs28612348, rs58781670,
rs4475691, rs950122, rs3905286
rs7366404 -- rs4970334, rs4970333
.....
... and:
huz[,]
11 x 11 sparse Matrix of class "dgCMatrix"
[[ suppressing 11 column names ‘rs112856858’, ‘rs7366404’, ‘rs117086422’ ... ]]
rs112856858 . . 0.905914 0.918142 0.862112 . 0.851176
rs7366404 . . . . . 0.965777 .
dput (huz)
structure(list(11, FALSE, c(2, 3, 4, 6, 8, 9, 10, 5, 7, 3, 4,
6, 8, 9, 10, 4, 6, 8, 9, 10, 6, 8, 9, 10, 7, 8, 9, 10, 9, 10,
10), c(0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3,
3, 3, 4, 4, 4, 4, 5, 6, 6, 6, 8, 8, 9), c(0, 1, 9, 2, 10, 15,
7, 3, 11, 16, 20, 8, 24, 4, 12, 17, 21, 25, 5, 13, 18, 22, 26,
28, 6, 14, 19, 23, 27, 29, 30), c(0, 1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30), c(0, 0, 0, 1, 3, 6, 7, 11, 13, 18, 24,
31), c(0, 7, 9, 15, 20, 24, 25, 28, 28, 30, 31, 31), list(c(1,
0, 1), structure(list(), .Names = character(0)), structure(list(
name = c("rs112856858", "rs7366404", "rs117086422", "rs57760052",
"rs28612348", "rs4970334", "rs58781670", "rs4970333", "rs4475691",
"rs950122", "rs3905286"), x = c(845274L, 845283L, 845635L,
845938L, 846078L, 846338L, 846398L, 846489L, 846808L, 846864L,
847228L), y = c(22.613664, 6.872323, 24.143785, 25.418544,
27.025684, 6.891312, 23.619718, 6.853977, 24.952302, 26.177151,
25.863288)), .Names = c("name", "x", "y")), structure(list(
weight = c(0.905914, 0.918142, 0.862112, 0.851176, 0.830663,
0.828752, 0.795978, 0.965777, 0.954814, 0.968856, 0.91619,
0.899706, 0.886057, 0.905914, 0.847388, 0.948302, 0.928708,
0.918511, 0.918142, 0.877348, 0.879914, 0.967857, 0.967698,
0.926782, 0.988668, 0.852178, 0.851176, 0.811661, 0.956284,
0.917279, 0.916858)), .Names = "weight"))), class = "igraph")
- [igraph] get.adgedgelist suggests non existing loop,
Hermann Norpois <=