How to find if two nodes are connected in an RGL graph(opens in new tab)
Say you have a graph like this: A simple graph How do you find out if there is a path between any of the two nodes? By using a breadth-first search: require 'rgl/implicit' require 'rgl/traversal' vertices = ["one", "two", "three"] ...