graph ← graph ##.insnode vertex             ⍝ Insert vertex ⍵ in graph ⍺.

Returns  a  new  graph  with  extra unconnected vertices up to and including the
requested one.

Examples:

      disp a                    ⍝ graph "a".
┌→──┬─┬───┬───┬─┐
│2 3│3│2 4│1 5│3│
└~─→┴─┴~─→┴~─→┴─┘

      disp a insnode 10         ⍝ ... with new node 10.
┌→──┬─┬───┬───┬─┬─┬─┬─┬─┬─┐
│2 3│3│2 4│1 5│3│0│0│0│0│0│
└~─→┴─┴~─→┴~─→┴─┴⊖┴⊖┴⊖┴⊖┴⊖┘

See also: Graphs remnode popnode inslink

Back to: contents

Back to: Workspaces

Trouble seeing APL font?