[Top][All Lists]

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

Re: [igraph] A silly question

From: Ish Rattan
Subject: Re: [igraph] A silly question
Date: Tue, 10 Apr 2012 21:47:22 -0400 (EDT)

On Tue, 10 Apr 2012, Tam??s Nepusz wrote:

Use format="ncol"; the NCOL format is similar to the edge list format but
it also supports weights.

I had success with:
 g <- read.graph("file", format="ncol", direted=TRUE, weight=TRUE)

Now for this graph g,

  l <- get.shortest.paths(g, 0, to=V(g), mode=c("out"))

I get one list of vertices on the path for each target vertex,
is there a way find the cost of path too (sum of the edge weights in
the path)?


reply via email to

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