# Rgl and vertices on path

**URL:** <https://www.ruby-forum.com/t/rgl-and-vertices-on-path/102816>\
**Category:** Ruby\
**Created:** [February 2, 2006, 12:08am UTC](https://www.ruby-forum.com/t/rgl-and-vertices-on-path/102816 "2006-02-02T00:08:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 2, 2006, 12:08am UTC](https://www.ruby-forum.com/t/rgl-and-vertices-on-path/102816/1 "2006-02-02T00:08:08Z")

</div>

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
