[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] Help with bipartite.projection()
From: |
capitano . nemo |
Subject: |
[igraph] Help with bipartite.projection() |
Date: |
Mon, 11 Nov 2013 22:23:17 +0000 |
User-agent: |
autistici.org webmail |
Hello list,
I have a bipartite graph "igraph_bi" with two types of nodes defined as
table(V(igraph_bi)$type)
thread user
75438 79174
Now when I try to call bipartite.projection(igraph_bi) I get
Error in bipartite.projection(igraph_bi) :
`NA' is not allowed in vertex types
In addition: Warning message:
In bipartite.projection(igraph_bi) : vertex types converted to logical
I am not sure to understand why the function is expecting a logical, but
still it is trying to convert V(igraph)$type into logical (here the
function:
https://git.huit.harvard.edu/igraph/igraph/blobs/eb91caf3f811d5ddcd89bd238c501c39a2124b73/interfaces/R/igraph/R/bipartite.R).
Should I convert my $type vector to TRUE/FALSE before converting?
Also why does the function expect a logical?
Thanks
- [igraph] Help with bipartite.projection(),
capitano . nemo <=