rebuilding repo
[cl-graph.git] / dev / package.lisp
1 ;;;-*- Mode: Lisp; Package: COMMON-LISP-USER -*-
2
3 #| simple-header
4
5 Author: Gary King, et. al.
6
7 DISCUSSION
8
9 |#
10 (in-package common-lisp-user)
11
12 (defpackage "CL-GRAPH"
13   (:use "COMMON-LISP" "METATILITIES" "CL-CONTAINERS" 
14         "METABANG.BIND" "METABANG.MATH")
15   (:nicknames "METABANG.GRAPH")
16   (:documentation "CL-Graph is a Common Lisp library for manipulating graphs and running graph algorithms.")
17   
18   (:export 
19    #:with-changing-vertex
20    
21    #:make-graph
22    #:basic-graph
23    
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 }
30    #:find-vertex-if
31    #:find-vertexes-if
32    #:search-for-vertex
33    
34    #:iterate-container             ; graph fn
35    #:iterate-vertexes
36    #:vertexes
37    #:source-edges
38    #:target-edges
39    #:child-vertexes
40    #:parent-vertexes
41    #:neighbor-vertexes
42    #:other-vertex
43    
44    #:edge-count                    ; graph
45    #:vertex-count                  ; graph
46    #:source-edge-count             ; vertex
47    #:target-edge-count             ; vertex
48    
49    #:rootp                         ; vertex
50    #:graph-roots                   ; graph
51    
52    #:topological-sort              ; graph
53    #:depth                         ; graph | vertex
54    #:depth-level
55    
56    #:get-transitive-closure        ;; CTM
57    #:make-filtered-graph           ;; CTM
58    
59    #:adjacentp
60    #:in-cycle-p                    ; graph vertex
61    #:force-undirected
62    
63    #:renumber-vertexes
64    #:renumber-edges
65    
66    #:generate-directed-free-tree
67    
68    #:contains-undirected-edge-p
69    #:contains-directed-edge-p
70    
71    #:undirected-edge-p
72    #:directed-edge-p
73    #:tagged-edge-p
74    #:untagged-edge-p
75    #:tag-all-edges
76    #:untag-all-edges
77    #:graph->dot
78    #:vertex->dot
79    #:edge->dot
80    #:graph->dot-properties
81    #:subgraph-containing
82    
83    #:connected-graph-p
84    #:find-connected-components
85    #:connected-component-count
86    
87    #:target-vertex
88    #:source-vertex
89    
90    #:add-edge                      ; graph edge
91    #:delete-edge                   ; graph edge
92    
93    #:add-vertex                    ; graph { value | vertex }
94    #:delete-vertex                 ; graph { value | vertex }
95    #:find-vertex                   ; graph { value | vertex }
96    #:find-edge                     ; graph edge
97    #:find-edge-between-vertexes    ; graph { vertex | value } { vertex | value }
98    #:find-edge-between-vertexes-if ; graph { vertex | value } { vertex | value } fn
99    #:find-edge-if                  ; graph
100    #:find-edges-if                 ; graph
101    
102    #:edges                         ; graph | vertex
103    #:iterate-edges                 ; graph fn
104    #:iterate-source-edges          ; vertex fn
105    #:iterate-target-edges          ; vertex fn
106    #:iterate-children              ; vertex (nodes) fn
107    #:iterate-parents               ; vertex (nodes) fn
108    #:iterate-neighbors             ; vertex (all neighbors) fn
109    #:has-children-p
110    #:has-parent-p
111    #:number-of-neighbors
112    
113    #:edge-count                    ; graph
114    #:vertex-count                  ; graph
115    
116    #:topological-sort              ; graph
117    #:depth                         ; graph | vertex
118    #:depth-level
119    
120    #:get-transitive-closure        ;; CTM
121    #:make-filtered-graph           ;; CTM
122    
123    #:adjacentp
124    #:in-cycle-p                    ; graph vertex
125    #:in-undirected-cycle-p         ; graph vertex
126    #:any-undirected-cycle-p        ; graph
127    #:force-undirected
128    #:vertices-share-edge-p
129    
130    #:map-paths
131    #:map-shortest-paths
132    
133    ;;; depth first search 
134    #:dfs-edge-type
135    #:dfs-back-edge-p 
136    #:dfs-tree-edge-p
137    #:edge-lessp-by-direction
138    #:out-edge-for-vertex-p
139    #:dfs
140    
141    ;;; minimum-spanning-tree
142    #+Ignore #:add-edges-to-graph
143    
144    #:make-graph-from-vertexes
145    #:edge-lessp-by-weight
146    #:minimum-spanning-tree
147    
148    ;;; mapping
149    #+Ignore #:map-over-all-combinations-of-k-vertexes
150    #+Ignore #:map-over-all-combinations-of-k-edges
151    
152    #:project-bipartite-graph
153    
154    #:make-vertex-edges-container 
155    
156    #:vertex-degree-counts
157    #:vertex-degree
158    #:average-vertex-degree
159    #:vertex-clustering-coefficient
160    #:average-vertex-clustering-coefficient
161    
162    #:graph-mixing-matrix
163    #:graph-edge-mixture-matrix
164    #:assortativity-coefficient
165    #:vertex-degree-summary))