class Twb::Graphedges
Attributes
edges[RW]
root[R]
@root - the graph's root node @edges - the collection of the graph's edges
Public Class Methods
new(root:)
click to toggle source
# File lib/twb/graphedges.rb, line 25 def initialize (root:) @root = root if root.instance_of? Twb::Graphnode @edges = [] end
Public Instance Methods
to_s()
click to toggle source
# File lib/twb/graphedges.rb, line 30 def to_s "Root:'%s' edges::%s::" % [@root.to_s, @edges.to_s] end