Method: GraphLab::Vertex#init_valxy
- Defined in:
- lib/graphlab.rb
#init_valxy(value, x, y) ⇒ Object
361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/graphlab.rb', line 361 def init_valxy(value, x , y) raise "Enter other value. Vertex with this value has been created!" if @@createdValues.include?(value) if(!@@createdValues.include?(value)) @@createdValues << value @value = value @xcoord = x @ycoord = y @adjList = Array.new @visited = false end return @value end |