class Silicium::Graphs::Node
Attributes
adjacents[RW]
name[RW]
Public Class Methods
new(name)
click to toggle source
# File lib/topological_sort.rb, line 20 def initialize(name) # using Set instead of an Array to avoid duplications @adjacents = Set.new @name = name end
Public Instance Methods
to_s()
click to toggle source
# File lib/topological_sort.rb, line 26 def to_s @name end