igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] A silly question


From: Tamás Nepusz
Subject: Re: [igraph] A silly question
Date: Wed, 11 Apr 2012 19:16:31 +0200

> g <- erad.graph("file", format="ncol", directed=TRUE, weight=TRUE)
> l <- get.shortest.paths(g, 0, to=V(g), mode=c("out"))
> E(g, path=l[2])$weight
> (list) object can't be coerced to type 'double' # the error

Use E(g, path=l[[2]])
Note the double square brackets.

-- 
T.




reply via email to

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