module Algorithmable::Graphs::Traversals

Public Instance Methods

traverse_with_breadth_first(graph, source) click to toggle source
# File lib/algorithmable/graphs/traversals.rb, line 12
def traverse_with_breadth_first(graph, source)
  BreadthFirst.new(graph, source)
end
traverse_with_depth_first(graph, source) click to toggle source
# File lib/algorithmable/graphs/traversals.rb, line 8
def traverse_with_depth_first(graph, source)
  DepthFirst.new(graph, source)
end