List of: Scheme Extensions
Subjects: Graph Theory
Contents: Kernel

Action: Creates a list of a vertices in a graph and their respective distance from the starting vertex.

Filename: kern/kern_scm/graph_scm.cxx

Syntax: (graph:show-order in-graph)

Arg Types: in-graph graph

Returns: text

in-graph specifies a graph.

Example: ; graph:show-order

; Create a simple graph.

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

;; g1

(graph:order-from g1 "a")

;; 4

(graph:show-order g1)

;; ("a 0" "b 1" "c 2" "e 3" "d 3" "f 3" "g 4" "h 4")