//================================================================== // File: vertex.c // Author: Timothy A. Budd // Platform: Cfront // Description: Template implementation of graph vertex // Copyright (c) 1992 by Timothy A. Budd, All Rights Reserved // Permission granted for duplication if not for profit //================================================================== # include template vertex::vertex() { // do nothing } template vertex::vertex(T init) : value(init) { // do nothing } template void vertex::addArc(vertex & x) { arcs.add(x); } template int operator == (const vertex left, const vertex & right) { return left.value == right.value; }