graph:is-subset
List of: Scheme Extensions
Subjects: Graph Theory
Contents: Kernel

Action: Returns TRUE if the small graph is a subset of the large graph.

Filename: kern/kern_scm/graph_scm.cxx

Syntax: (graph:is-subset small-graph large-graph)

Arg Types: small-graph graph

large-graph graph

Returns: boolean


small-graph specifies the subset graph.


large-graph specifies the graph of which small-graph is a subset.

Example: ; graph:is-subset

; Create a graph

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

;; g1

(define g2 (graph "b-c c-e"))

;; g2

(define g3 (graph "h-i i-j"))

;; g3

(graph:is-subset g2 g1)

;; #t

(graph:is-subset g3 g1)

;; #f
PDF/KERN/13SCF.PDF
HTM/DATA/KERN/KERN/13SCF/0049.HTM