//================================================================== // File: labeledVertex.h // Author: Timothy A. Budd // Platform: Cfront // Description: Template Description of labeled graph vertex // Copyright (c) 1992 by Timothy A. Budd, All Rights Reserved // Permission granted for duplication if not for profit //================================================================== # ifndef labeldVertexH # define labeldVertexH // // weighted graph vertices // # include "table.h" // // class labeledVertex // vertex maintaining arcs with edge weights // template class labeledVertex { public: T value; // constructors labeledVertex(); labeledVertex(T init); // collect the set of neighbor arcs dictionary arcs; // add an arc void addArc(labeledVertex & to, A label); }; template int operator == (const labeledVertex & left, const labeledVertex & right); # endif