node/lib/metasm/metasm/gui/dasm_graph.rb
# checks if there is a path from src to dst avoiding stuff in 'done'
checks if there is a path from src to dst avoiding stuff in 'done'
checks if there is a path from src to dst avoiding stuff in ' done '
def can_find_path(src, dst, done={})
		todo = [src]
		while g = todo.pop
			next if done[g]
			return true if g == dst
			done[g] = true
			todo.concat g.to
		end
		false
	end
def can_find_path ( src , dst , done = { } ) todo = [ src ] while g = todo . pop next if done [ g ] return true if g == dst done [ g ] = true todo . concat g . to end false end
checks if there is a path from src to dst avoiding stuff in 'done'
checks if there is a path from src to dst avoiding stuff in ' done '
src
dst
done