Class: Hydrangea::PartialGraphTransform
- Inherits:
-
GraphTransform
- Object
- GraphTransform
- Hydrangea::PartialGraphTransform
- Defined in:
- lib/hydrangea/partial_graph_transform.rb
Instance Method Summary collapse
-
#initialize(nodes, states) ⇒ PartialGraphTransform
constructor
A new instance of PartialGraphTransform.
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 |