1 ;;;-*- Mode: Lisp; Package: COMMON-LISP-USER -*-
5 Author: Gary King, et. al.
10 (in-package #:common-lisp-user)
12 (defpackage #:cl-graph
13 (:use #:common-lisp #:metatilities #:cl-containers
14 #:metabang.bind #+(or) #:cl-mathstats #:moptilities)
15 (:nicknames #:metabang.graph)
16 (:documentation "CL-Graph is a Common Lisp library for manipulating graphs and running graph algorithms.")
19 #:with-changing-vertex
24 #:add-edge-between-vertexes ; graph { value | vertex } { value | vertex }
25 #:delete-edge-between-vertexes ; graph { value | vertex } { value | vertex }
26 #:add-vertex ; graph { value | vertex }
27 #:find-vertex ; graph { value | vertex }
28 #:find-edge ; graph edge
29 #:find-edge-between-vertexes ; graph { vertex | value } { vertex | value }
34 #:iterate-container ; graph fn
45 #:vertex-count ; graph
46 #:source-edge-count ; vertex
47 #:target-edge-count ; vertex
52 #:topological-sort ; graph
53 #:depth ; graph | vertex
56 #:get-transitive-closure ;; CTM
57 #:make-filtered-graph ;; CTM
60 #:in-cycle-p ; graph vertex
66 #:generate-directed-free-tree
68 #:contains-undirected-edge-p
69 #:contains-directed-edge-p
80 #:graph->dot-properties
87 #:layout-graph-with-graphviz
91 #:find-connected-components
92 #:connected-component-count
97 #:add-edge ; graph edge
98 #:delete-edge ; graph edge
101 #:add-vertex ; graph { value | vertex }
102 #:delete-vertex ; graph { value | vertex }
103 #:find-vertex ; graph { value | vertex }
104 #:find-edge ; graph edge
105 #:find-edge-between-vertexes ; graph { vertex | value } { vertex | value }
106 #:find-edge-between-vertexes-if ; graph { vertex | value } { vertex | value } fn
107 #:find-edge-if ; graph
108 #:find-edges-if ; graph
110 #:edges ; graph | vertex
111 #:iterate-edges ; graph fn
112 #:iterate-source-edges ; vertex fn
113 #:iterate-target-edges ; vertex fn
114 #:iterate-children ; vertex (nodes) fn
115 #:iterate-parents ; vertex (nodes) fn
116 #:iterate-neighbors ; vertex (all neighbors) fn
119 #:number-of-neighbors
124 #:vertex-count ; graph
126 #:topological-sort ; graph
127 #:depth ; graph | vertex
130 #:get-transitive-closure ;; CTM
131 #:make-filtered-graph ;; CTM
134 #:in-cycle-p ; graph vertex
135 #:in-undirected-cycle-p ; graph vertex
136 #:any-undirected-cycle-p ; graph
138 #:vertices-share-edge-p
143 ;;; depth first search
147 #:edge-lessp-by-direction
148 #:out-edge-for-vertex-p
151 ;;; minimum-spanning-tree
152 #+Ignore #:add-edges-to-graph
154 #:make-graph-from-vertexes
155 #:edge-lessp-by-weight
156 #:minimum-spanning-tree
159 #+Ignore #:map-over-all-combinations-of-k-vertexes
160 #+Ignore #:map-over-all-combinations-of-k-edges
162 #:project-bipartite-graph
164 #:make-vertex-edges-container
165 #:make-vertex-for-graph
167 #:vertex-degree-counts
169 #:average-vertex-degree
170 #:vertex-clustering-coefficient
171 #:average-vertex-clustering-coefficient
173 #:graph-mixing-matrix
174 #:graph-edge-mixture-matrix
175 #:assortativity-coefficient
176 #:vertex-degree-summary
177 #:connected-components
178 #:average-local-clustering-coefficient
179 #:vertex-triangle-count
184 #:print-dot-key-value
185 #:dot-attribute-value
186 #:dot-attributes-mixin
187 #:*dot-graph-attributes*