Class: Hydrangea::PartialGraphTransform

Inherits:
GraphTransform show all
Defined in:
lib/hydrangea/partial_graph_transform.rb

Instance Method Summary collapse

Methods inherited from GraphTransform

#finish, #pass, #transform, #untransformed

Constructor Details

#initialize(nodes, states) ⇒ PartialGraphTransform

Returns a new instance of PartialGraphTransform.



6
7
8
9
# File 'lib/hydrangea/partial_graph_transform.rb', line 6

def initialize(nodes, states)
  super(nodes)
  GraphPartition[states].reject(@before).each{ |n| pass(node: n) }
end