meruby
2/1/2006 3:53:00 AM
How can get list of vertices from start node to end node in rgl?
For example:
require 'rgl/adjacency'
dg=RGL::DirectedAdjacencyGraph[1,2 ,2,3 ,2,4, 4,5, 6,4, 1,6]
How to do following?
get_path(1,5) should give [1,2,4,5] or [1,6,4,5] or both
Thanks in advance