Message Boards Message Boards

0
|
5661 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

BetweennessCentrality bug?

Posted 11 years ago
Hi. I am working with the BetweennessCentrality command and it is giving me negative numbers, which does not make any sense (because it counts the number of occurrances of an event). I am using Mathematica 9.0.1.0
Anyone else is having the same problem?

Thanks

Fernando
POSTED BY: Fernando Perez
2 Replies
I made a small package that makes it very easy to call the igraph library through RLink and do graph-computations.  It's not complete, for example it doesn't support edge weights.  You can use this library to verify results returned by Mathematica (which is the main reason why I wrote it).  One problem with graph-related functions is that usually it's more difficult to verify results than in numerical calculations. E.g. an Integrate results can usually be verified using NIntegrate, all within Mathematica.  We can't easily do this for most graph-related functions without resorting to an external library like igraph.

Here's IGraphR.

An an example of its use:

POSTED BY: Szabolcs Horvát
Are you by any chance using edge or vertex weights?

If the graph is manageable in size, try sending it in an email to support@wolfram.com where a technician can take a closer look at the problem. 
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract