⍝ Insert vertex ⍵ in graph ⍺:

    a←(2 3)(3)(2 4)(1 5)(3)     ⍝ graph "a".
    a                
┌───┬─┬───┬───┬─┐
│2 3│3│2 4│1 5│3│
└───┴─┴───┴───┴─┘
    a insnode 10                ⍝ ... with new node 10.
┌───┬─┬───┬───┬─┬┬┬┬┬┐
│2 3│3│2 4│1 5│3││││││
└───┴─┴───┴───┴─┴┴┴┴┴┘

Back to: code

Back to: Workspaces