lib/dr/base/graph.rb in drain-0.6.0 vs lib/dr/base/graph.rb in drain-0.7.0

- old
+ new

@@ -211,9 +211,14 @@ add_node(node, attributes: attributes, infos: infos, recursive: recursive) end end self end + + # alias << build + def <<(node, **opts) + build(node, **opts) + end def all @nodes.sort end def roots