On 12/11/2012 01:46 PM, Søren Højsgaard wrote:
I represent a graph as an adjacency matrix of class "dgCMatrix" (from the
Matrix package).
xx
5 x 5 sparse Matrix of class "dgCMatrix"
a b c d e
a . 1 1 . .
b 1 . 1 . .
c 1 1 . 1 1
d . . 1 . 1
e . . 1 1 .
To check if the matrix defines and un
I represent a graph as an adjacency matrix of class "dgCMatrix" (from the
Matrix package).
> xx
5 x 5 sparse Matrix of class "dgCMatrix"
a b c d e
a . 1 1 . .
b 1 . 1 . .
c 1 1 . 1 1
d . . 1 . 1
e . . 1 1 .
To check if the matrix defines and undirected graph, I have made the following
functio
2 matches
Mail list logo