;;; ---------------------------------------------------------------------------
(defmethod generate-simple-preferential-attachment-graph
+ (generator (graph-class symbol) size minimum-degree)
+ (generate-simple-preferential-attachment-graph
+ generator (make-instance graph-class) size minimum-degree))
+
+;;; ---------------------------------------------------------------------------
+
+(defmethod generate-simple-preferential-attachment-graph
(generator graph size minimum-degree)
(bind ((m (make-array (list (* 2 size minimum-degree)))))
(loop for v from 0 to (1- size) do
;;; ---------------------------------------------------------------------------
-(Defmethod generate-acquaintance-network
+(defmethod generate-acquaintance-network
(generator graph size death-probability iterations vertex-labeler
&key (duplicate-edge-function :ignore))
;; bring the graph up to size
|#
(in-package metabang.graph)
+(export '(
+ print-dot-key-value
+ *dot-graph-attributes*
+ ))
+
;;; ---------------------------------------------------------------------------
;
; This outputs the graph to string in accordance with the DOT file format.
|#
(defparameter *dot-graph-attributes*
- '((:size coord)
+ '((:size coordinate)
(:bb bounding-box)
(:page text)
(:ratio (:fill :compress :auto)) ;; Could actually be a float number too