1 ;;;-*- Mode: Lisp; Package: metabang.graph -*-
5 $Id: graph-matrix.lisp,v 1.1 2005/05/01 21:40:26 gwking Exp $
7 Copyright 1992 - 2005 Experimental Knowledge Systems Lab,
8 University of Massachusetts Amherst MA, 01003-4610
9 Professor Paul Cohen, Director
15 CtF uses an adj list (vector of edges with lists) or adj matrix (vector with vectors)
17 I think I'd like a numeric class and then a object one... maybe someday
19 (in-package #:metabang.graph)
22 (defclass* graph-matrix (basic-graph)
23 ((adjencency-matrix nil r))
25 :vertex-class 'graph-matrix-vertex
26 :undirected-edge-class 'graph-matrix-edge)
28 (:documentation "Stub for matrix based graph. Not implemented."))
31 (defmethod initialize-instance :after ((object graph-matrix) &key)
32 (setf (slot-value object 'adjencency-matrix)
36 (defmethod make-vertex-container ((graph graph-matrix) initial-size)
37 (make-container 'vector-container :initial-size initial-size
41 (defmethod make-edge-container ((graph graph-matrix) initial-size)
42 (make-container 'vector-container :initial-size initial-size
46 (defclass* graph-matrix-edge (basic-edge)
50 (:documentation "Stub for matrix based graph. Not implemented."))
53 (defclass* graph-matrix-vertex (basic-vertex)
56 (:documentation "Stub for matrix based graph. Not implemented."))