On Mon, Apr 21, 2014 at 5:27 AM, <[email protected]> wrote:

> I have this graph
>
>   simp_graph
>   IGRAPH DN-- 84203 284955 --
>   + attr: name (v/c), timestamp (v/c)
>
> which when I
>
>   dyad.census(simp_graph)
>
> gives
>
>
>   $mut
>   [1] 24130
>
>   $asym
>   [1] 236695
>
>   $null
>   [1] 0
>
>   Warning message:
>   In dyad.census(simp_directreply_graph) :
>    At motifs.c:899 :Integer overflow, returning zero
>
> I am not sure what is generating the warning message.


The number is too big to represent it as an integer.


> But I also have a problem with the statistics: considering my graph has
> 84,203 vertices the number of possible pairs is 3,545,030,503 or
> (84203*(84203-1))/2, then the results can’t be correct because 24130 +
> 236695 + 0 is only 260,825.
>

24130 *2 + 236695 = 284955

You need to count mutual edges twice, because dyad.census works on pairs of
vertices, not on edges.

Gabor



>
> Am I missing something?
>
> Thanks
>
> Francesco
>
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to