graph ← graph ##.remlink (from to)          ⍝ Remove edge ⍵ from graph ⍺.

Returns a new graph with the target edge removed.

Examples:

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

      disp a remlink 2 3        ⍝ ... with link 2→3 removed. 
┌→──┬─┬───┬───┬─┐ 
│2 3│0│2 4│1 5│3│
└~─→┴⊖┴~─→┴~─→┴─┘ 

See also: Graphs inslink remnode

Back to: contents

Back to: Dyalog APL

Trouble seeing APL font?