igraph-help
[Top][All Lists]
Advanced

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

[igraph] plot shortest paths in one graph


From: Ragia Ibrahim
Subject: [igraph] plot shortest paths in one graph
Date: Thu, 30 Jan 2014 13:49:15 +0200

Dear members,
I got a graph 
data<-(c(0,1, 0,8, 0,9, 0,2, 1,3, 2,3, 4,5, 5,1, 6,2, 7,6))
g1 <- graph( data+1 , directed=TRUE )


and i got all shortest paths
paths<-get.all.shortest.paths( g1, 1, 4 )


the paths contain:   
[[1]]
[1] 1 3 4

[[2]]
[1] 1 2 4

HOW CAN I plot them like a graph, nodes edges between them?
shall i convert each list item into edge list then concatenate them ?if so how to write the parsing (reading) for?

thanks in advance
RAE


reply via email to

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