MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / startAddEdge

Method startAddEdge

SRC/graph/graph/Graph.cpp:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void
223Graph::startAddEdge() {
224 vertices.clear();
225 VertexIter& iter = getVertices();
226 Vertex* v = 0;
227 while ((v = iter()) != 0) {
228 int tag = v->getTag();
229 if (tag >= 0) {
230 vertices.resize(tag+1);
231 vertices[tag] = v;
232 }
233 }
234}
235
236int
237Graph::addEdgeFast(int vertexTag, int otherVertexTag)

Callers 1

AnalysisModel.cppFile · 0.80

Calls 3

clearMethod · 0.45
getTagMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected