Action:
|
Performs a Boolean intersect operation of two graphs.
|
|
Filename:
|
kern/kern_scm/graph_scm.cxx
|
|
Syntax:
|
(graph:intersect in-graph1 in-graph2)
|
|
Arg Types:
|
in-graph1
|
graph
|
|
in-graph2
|
graph
|
|
Returns:
|
graph
|
|
Description:
|
Given two graphs, returns a new graph that is a Boolean intersection of the two.
|
|
|
in-graph1 and
in-graph2 specifies the graphs to be intersected.
|
|
Example:
|
; graph:intersect
|
|
; Create some simple graphs.
|
|
(define g1 (graph "I-me me-myself myself-mine I-we
|
|
|
we-us us-them"))
|
|
;; g1
|
|
(define g2 (graph "he-she it-thing they-those us-we
|
|
|
them-us"))
|
|
;; g2
|
|
(define g3 (graph:intersect g1 g2))
|
|
;; g3
|