igraph-help
[Top][All Lists]
Advanced

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

[igraph] another graph.incidence problem. It ignores mode argument


From: Jose Quesada
Subject: [igraph] another graph.incidence problem. It ignores mode argument
Date: Mon, 08 Jun 2009 16:35:36 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Hi Gabor, Tamas, (all)

M <- new("dgCMatrix", Dim = 2:3, p = as.integer(c(0,1,1,3)),
         i = c(1L, 1:0), x= c(2,2,1))

                 g = graph.incidence(M, directed=T, mode="in")

>  print(g)
Vertices: 5
Edges: 3
Directed: TRUE
Edges:
         
[0] 1 -> 2
[1] 0 -> 4
[2] 1 -> 4
>
>  g = graph.incidence(M, directed=T, mode="out")
>
>  print(g)

Vertices: 5
Edges: 3
Directed: TRUE
Edges:
         
[0] 1 -> 2
[1] 0 -> 4
[2] 1 -> 4

Well, should the direction be reversed in the second one?
Thanks!

Best,
-Jose

-- 
Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition -ABC-, 
Lentzeallee 94, office 224, 14195 Berlin
http://www.josequesada.name/           





reply via email to

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