graph:subtract-edges
List of: Scheme Extensions
Subjects: Graph Theory
Contents: Kernel

Action: Subtracts the edges of graph1 from graph2 returning the result.

Filename: kern/kern_scm/graph_scm.cxx

Syntax: (graph:subtract-edges in-graph1 in-graph2)

Arg Types: in-graph1 graph

in-graph2 graph

Returns: graph


in-graph1 and in-graph2 specifies the graph.

Example: ; graph:subtract-edges

; Create a simple graph.

(define g1 (graph "a-b b-c c-e c-d c-f f-g f-h"))

;; g1

(define g2 (graph "c-f f-g f-h"))

;; g2

(define g3 (graph:subtract-edges g1 g2))

;; g3
PDF/KERN/13SCF.PDF
HTM/DATA/KERN/KERN/13SCF/0066.HTM