igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] bipartite.projection() with non numeric vertices id


From: Gábor Csárdi
Subject: Re: [igraph] bipartite.projection() with non numeric vertices id
Date: Mon, 11 Nov 2013 23:51:20 -0500

This happens if you mix zeros with vertex ids, or maybe NAs. Why it
happens to you I have no clue.

Unless you show us how to reproduce the bug with some reproducible
example, there is a high chance that nobody can help you.

Best,
Gabor

On Mon, Nov 11, 2013 at 6:13 PM,  <address@hidden> wrote:
> I have a bipartite graph of an online forum. The vertices id are the user id
> (e.g. "24242434") and url links (e.g. "www.somesite.com/somethread.html). I
> successfully create the graph with
>
> graph.data.frame(edges, directed=TRUE, vertices=nodes)
>
> IGRAPH DN-B 154612 448387 --
> + attr: name (v/c), gender (v/c), member (v/l), timestamp (v/c), type
>   (v/l), reactions (v/n), dislikes (v/n), createdAt (v/c), slug (v/c),
>   postNumber (v/n), likes (v/n), message (v/c), score (v/n),
>   categoryLink (v/c), createdAt (e/c), type (e/c), parent (e/c),
>   dislikes (e/n), message (e/c), numReports (e/n), likes (e/n)
>
> Now I want a one-mode projection of the graph. But when I try
>
>> igraph_onemode <- bipartite.projection(igraph_bi)
>
>
> I get
>
> Error in bipartite.projection(igraph_bi) :
>   At structure_generators.c:84 : Invalid (negative) vertex id, Invalid
> vertex id
>
> This error popped up few times when googling it. Still the discussions I
> found (I guess) don't apply to my problem since I can't remove the negative
> ids.
>
> Thanks
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

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