I'm not using Graph because I haven't come across it before to be honest. Graph seems to provide dumping and manipulation routines, but ultimately I need this to be fast so routing through an external nodule isn't ideal (not that my code is the pinnacle of fast execution).
I'm not sure what you mean by 'solve your real problem', but if you mean just ensuring that my data structure is sound to begin with I usually just data dump, and perhaps should have provided this in my initial question for further clarity.
$VAR1 = { 'name' => 'I1', 'inputs' => '-' }; $VAR2 = { 'name' => 'I2', 'inputs' => '-' }; $VAR3 = { 'outputs' => '-', 'name' => 'O1' }; $VAR4 = { 'outputs' => '-', 'name' => 'O2' }; After we do an AddConnection("I1","O2") $VAR1 = { 'outputs' => [ 'O2' ], 'name' => 'I1', 'inputs' => '-' }; $VAR2 = { 'name' => 'I2', 'inputs' => '-' }; $VAR3 = { 'outputs' => '-', 'name' => 'O1' }; $VAR4 = { 'outputs' => '-', 'name' => 'O2', 'inputs' => [ 'I1' ] }; we have 2 elements to choose from we picked 0 : O1 we have 2 elements to choose from we picked 0 : I1
In reply to Re^2: Array of hashes of Arrays
by thekestrel
in thread Array of hashes of Arrays
by thekestrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |