| 259 | |
| 260 | |
| 261 | void |
| 262 | ArrayGraph::Print(OPS_Stream &s) const |
| 263 | { |
| 264 | s << numVertex << " " << numEdge << endln; |
| 265 | |
| 266 | Vertex *vertexPtr; |
| 267 | |
| 268 | // loop over the vertices and print each |
| 269 | |
| 270 | for (int i=0; i<sizeVertices; i++) { |
| 271 | vertexPtr = theVertices[i]; |
| 272 | if (vertexPtr != 0) |
| 273 | vertexPtr->Print(s); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | OPS_Stream &operator<<(OPS_Stream &s, const ArrayGraph &M) |
| 278 | { |