| 107 | } |
| 108 | |
| 109 | Graph::~Graph() |
| 110 | { |
| 111 | // invoke delete on the Vertices |
| 112 | myVertices->clearAll(); |
| 113 | |
| 114 | if (myVertices != 0) |
| 115 | delete myVertices; |
| 116 | |
| 117 | if (theVertexIter != 0) |
| 118 | delete theVertexIter; |
| 119 | } |
| 120 | |
| 121 | |
| 122 | // bool addVertex(int vertexTag, int vertexRef, |