in reply to Re: Array of hashes of Arrays
in thread Array of hashes of Arrays
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Array of hashes of Arrays
by dragonchild (Archbishop) on Feb 21, 2005 at 16:57 UTC | |
by thekestrel (Friar) on Feb 21, 2005 at 21:10 UTC | |
by thekestrel (Friar) on Feb 21, 2005 at 17:11 UTC |