Method: NEAT::Graph::DependencyResolver#initialize
- Defined in:
- lib/rubyneat/graph.rb
#initialize(outputs, &block) ⇒ DependencyResolver
Given a list of output nodes, we shall work backwards from them to resolve their dependencies.
40 41 42 43 44 |
# File 'lib/rubyneat/graph.rb', line 40 def initialize(outputs, &block) @outputs = outputs super block.(self) unless block.nil? end |