[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Calculating betweenness
From: |
Tamás Nepusz |
Subject: |
Re: [igraph] Calculating betweenness |
Date: |
Mon, 5 Dec 2016 10:56:54 +0100 |
Hello,
Please send me your weighted graph so I can take a look at it.
T.
> On 2016. Dec 5., at 2:38, Rachael Mady <address@hidden> wrote:
>
> Hello,
>
> I am trying to calculate betweenness for an association matrix.
>
> I have successfully calculated it for a binary association matrix.
> However, I owuld like to also calcualte it for a weighted association matrix.
>
> Unfortunately I run into this error:
> Error in .Call("R_igraph_closeness", graph, vids - 1, mode, weights,
> normalized, :
> At centrality.c:2507 : Invalid weight vector length, Invalid value
>
> This is the original code that worked:
> measure3 <- as.numeric(betweenness(graphN, v=V(graphN), directed = F,
> weights = NULL, nobigint = TRUE, normalized = TRUE))
>
> This is my modified code that uses a weighted matrix:
> measure3 <- as.numeric(betweenness(graph, v=V(graph), directed = F,
> weights = NULL, nobigint = TRUE, normalized = TRUE))
>
> Any help is appreciated!
> Rachael
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help