module SimilarCuisine $dg= RGL::DirectedAdjacencyGraph['English','Indian' ,'English','Asian']
def self.getSimilarCuisine(c)
return $dg.adjacent_vertices(c)
end
end
# This is function which returns a array of vertices
SimilarCuisine.getSimilarCuisine(@input)
I want to save the output of above call into an array
Comments
Post a Comment