lib/dr/base/graph.rb in drain-0.4 vs lib/dr/base/graph.rb in drain-0.5
- old
+ new
@@ -224,10 +224,10 @@
@nodes.select{ |n| n.children.length == 0}.sort
end
# allow a hash too
def |(graph)
- graph=Graph.new(graph) unless Graph===graph
+ graph=Graph.new(graph, **{}) unless Graph===graph
build(*graph.all, recursive: false)
end
def +(graph)
clone.|(graph)
end