Action:

Performs a Boolean subtract operation of two graphs.


Filename:

kern/kern_scm/graph_scm.cxx


Syntax:

(graph:subtract ingraph1 ingraph2 inkeep)


Arg Types:

ingraph1

graph


ingraph2

graph


inkeep

boolean


Returns:

graph



ingraph1 and
ingraph2 specifies the graph.



The
inkeep argument with a value true (#t) specifies that the edges going to common elements are kept.


Example:

; graph:subtract


; Create some simple graphs.


(define g1 (graph "Ime memyself myselfmine Iwe



weus usthem"))


;; g1


(define g2 (graph "heshe itthing theythose uswe



themus"))


;; g2


(define g3 (graph:subtract g1 g2 #f))


;; g3


(define g4 (graph:subtract g2 g1 #f))


;; g4


(define g5 (graph:subtract g2 g1 #t))


;; g5
