Hi gabor, here is how I import the matrix and calculate the betweenness.
TabA <- read.csv("~/Desktop/DATI TOTALI/MATRICI INIZIALI/2006/T1_011
copia.TXT")
network <- as.matrix ( TabA )
networkg <- graph.adjacency ( network, mode=c("directed"), weighted = TRUE
)
networkbet <- betweenness ( networkg, directed = TRUE, weights = E (
networkg )$weight )
is it ok now or you need something else?
thanks
Marko
2013/5/16 Gábor Csárdi <[email protected]>
> Again, please send some self-contained code. Maybe you are not creating
> the graphs you intended to, maybe you create a graph with multiple edges,
> and that's not what you want. Hard to guess. It is much easier if you show
> your complete code that generates the results you don't like.
>
> Gabor
>
>
> On Thu, May 16, 2013 at 2:42 AM, Marco Antoniazzi <
> [email protected]> wrote:
>
>> Hi gabor,
>>
>> you can try with these two matrices, one is weighted and the other binary.
>> thanks
>>
>> Marko
>>
>>
>> 2013/5/16 Gábor Csárdi <[email protected]>
>>
>>> On Mon, May 13, 2013 at 2:35 AM, Antoniazzi Marco <
>>> [email protected]> wrote:
>>>
>>>> thank you Gabor,
>>>>
>>>> I don't understand the difference between weights=NULL and weights
>>>> =TRUE then when I create a graph object.
>>>>
>>>
>>> Sorry, my bad, I probably misunderstood your question. Can you please
>>> send some self-contained code, ie. that has everything and I can run it?
>>> Your code does not have the matrices, so I cannot reproduce your problem.
>>> Thanks.
>>>
>>> Gabor
>>>
>>> [...]
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
> --
> Gabor Csardi <[email protected]> MTA KFKI RMKI
>
> _______________________________________________
> 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