| 143 | } |
| 144 | |
| 145 | ALArc* 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 | |
| 157 | void ALGraph::SetWeight(MyGraphicsLineItem *garc, int weight){ |
| 158 | int strtVex = GetIdOf(garc->stVex()); |
nothing calls this directly
no outgoing calls
no test coverage detected