igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Help interpreting warning message from dyad.census()


From: Gábor Csárdi
Subject: Re: [igraph] Help interpreting warning message from dyad.census()
Date: Mon, 21 Apr 2014 07:25:57 -0400

On Mon, Apr 21, 2014 at 5:27 AM, <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


reply via email to

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