MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / ResetDistance

Method ResetDistance

graph_implement.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void ALGraph::ResetDistance(){
225 for(int i = 0; i < vexList.size(); i++){
226 vexList[i].info->strtVexInfo = nullptr;
227 vexList[i].info->distance = VexInfo::INF;
228 vexList[i].info->preVexID = -1;
229 vexList[i].info->gVex->access("", false);
230 }
231}
232
233void ALGraph::DFS(int strtID, bool generateForest){
234 if(strtID == -1)

Callers 1

InitMethod · 0.80

Calls 1

accessMethod · 0.45

Tested by

no test coverage detected