igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Shortest path matrix


From: Gábor Csárdi
Subject: Re: [igraph] Shortest path matrix
Date: Sun, 5 Jul 2015 16:29:04 +0200

On Sun, Jul 5, 2015 at 4:18 PM, seema aswani <address@hidden> wrote:
Hi,
Just tried the way you told. But it is giving the resultant matrix in form of 
    [,1]      [,2]     
[1,] Integer,3 Integer,3
[2,] Integer,3 Integer,3 in your example. This is not giving the result as 1 2 3  1 2 3  3 2 1  3 2 1 as this.

Yes, you need to index the matrix to see the actual result. Lists can contain pretty much any R object, so when your matrix has lists as cells, R cannot really print the contents, there is no guarantee that it would even fit to the screen.

G.

reply via email to

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