[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] weighted centralities
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] weighted centralities |
Date: |
Fri, 21 May 2010 16:03:52 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
> >> G<-read.graph("graphtest.net", format="pajek")
> >> G
> > Vertices: 7
> > Edges: 6
> > Directed: FALSE
> > Edges:
> > [0] 0 -- 1
> > [1] 0 -- 2
> > [2] 0 -- 3
> > [3] 4 -- 5
> > [4] 4 -- 6
> > [5] 0 -- 4
> >> E(G)$weight
> > [1] 10 15 95 32 5 25
> >> betweenness(G)
> > [1] 12 0 0 0 9 0 0
> >> betweenness(G, weights=NA)
> > [1] 12 0 0 0 9 0 0
This is a tree graph, hence only one shortest path exists between any
two pairs of nodes. Adding weights to the graph would make no difference
for the shortest paths.
--
Tamas