From 65b29b990908dd664a3326096cdc78cb36a07162 Mon Sep 17 00:00:00 2001 From: Gary King Date: Wed, 22 Mar 2006 10:25:18 -0500 Subject: [PATCH] The return of copying support darcs-hash:20060322152518-3cc5d-94a611e48cf29d015351f357f074d664d9ab1e21.gz --- cl-graph.asd | 5 +++++ dev/copying.lisp | 21 +++++++++++++++++++++ dev/graph-container.lisp | 9 --------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 dev/copying.lisp diff --git a/cl-graph.asd b/cl-graph.asd index 9c21442..c1e13b4 100644 --- a/cl-graph.asd +++ b/cl-graph.asd @@ -74,3 +74,8 @@ instructions.")) ((:module "graphviz" :components ((:file "graphviz-support-optional"))))))) + +(asdf:defsystem-connection cl-graph-and-metacopy + :requires (cl-graph metacopy) + :components ((:module "dev" + :components ((:file "copying"))))) diff --git a/dev/copying.lisp b/dev/copying.lisp new file mode 100644 index 0000000..edb5dbe --- /dev/null +++ b/dev/copying.lisp @@ -0,0 +1,21 @@ +(in-package cl-graph) + +(metacopy:defcopy-methods basic-vertex + :copy-all t) + +(metacopy:defcopy-methods basic-edge + :set (edge-id tag color graph) + :copy (element)) + +(metacopy:defcopy-methods weighted-edge-mixin + :copy-all t) + +(metacopy:defcopy-methods basic-graph + :copy-all t) + +(metacopy:defcopy-methods graph-container-vertex + :copy-all t) + +(metacopy:defcopy-methods graph-container-edge + :copy-all t) + diff --git a/dev/graph-container.lisp b/dev/graph-container.lisp index 5cfeed9..afafdda 100644 --- a/dev/graph-container.lisp +++ b/dev/graph-container.lisp @@ -3,10 +3,6 @@ $Id: graph-container.lisp,v 1.12 2005/07/20 20:39:09 moody Exp $ -Copyright 1992 - 2003 Experimental Knowledge Systems Lab, -University of Massachusetts Amherst MA, 01003-4610 -Professor Paul Cohen, Director - Author: Gary King DISCUSSION @@ -66,11 +62,6 @@ DISCUSSION ;;; --------------------------------------------------------------------------- -#+COPYING -(defcopy-methods graph-container-vertex :copy-all t) - -;;; --------------------------------------------------------------------------- - (defmethod make-vertex-edges-container ((vertex graph-container-vertex) container-class &rest args) (apply #'make-container container-class args)) -- 1.7.10.4