class Vertex
Attributes
color_width[RW]
hue[RW]
max_dist[RW]
dist[RW]
i[RW]
id[RW]
j[RW]
label[RW]
marked[RW]
to_s[RW]
Public Instance Methods
char()
click to toggle source
# File lib/vertex.rb, line 26 def char dist.to_s.chars.last end
mark(dist: 0)
click to toggle source
# File lib/vertex.rb, line 21 def mark(dist: 0) @marked = true @dist = dist end
marked?()
click to toggle source
# File lib/vertex.rb, line 17 def marked? marked end
reset()
click to toggle source
# File lib/vertex.rb, line 30 def reset @marked = false @dist = 0 end