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

Method FindArc

graph_implement.cpp:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145ALArc* ALGraph::FindArc(int sID, int eID){
146 if(sID < 0 || sID >= vexList.size())
147 return nullptr;
148 ALArc *p = vexList[sID].firstArc;
149 while(p != nullptr){
150 if(p->eVexID == eID)
151 return p;
152 p = p->nextArc;
153 }
154 return nullptr;
155}
156
157void ALGraph::SetWeight(MyGraphicsLineItem *garc, int weight){
158 int strtVex = GetIdOf(garc->stVex());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected