class

Graken::Node

Inherits Reference < Object

Constructors

new(name : String, type : Graken::NodeType = NodeType::Normal, parallel : Array(Graken::Node) = [] of Node)
Source
new(duplicate : Node)
Source

Instance methods

add_child(node : Node)
Source
add_edge_in(edge : Edge)
Source
add_edge_out(edge : Edge)
Source
children
Source
edges_in
Source
edges_out
Source
name
Source
name=(name : String)
Source
parallel
Source
parent
Source
parent=(node : Node | Nil)
Source
remove_child(node : Node)
Source
remove_edge(edge : Edge)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
type
Source