> oneArc.outVertexId == currentId)) = currentNode-> nextArc;
} = firstArc; = new int [NUM_VERTEX]; = 0; (currentNode! = NULL) {[counter] = currentNode-> oneArc.outVertexId; (currentNode-> oneArc.inVertexId! = 0) {= true; = NULL; ((currentNode! = NULL) && (currentNode-> oneArc.outVertexId == newVertexId [counter])) {> oneArc.outVertexId = counter +1; (sidePointer ! = NULL) {(sidePointer, firstArc); = NULL;
} (foundInArray (currentNode-> oneArc.inVertexId, adjacentVertex, vertexLevel-1)! = NOT_FOUND) {(noOneBefore) {> oneArc.inVertexId = 0; = currentNode; = currentNode-> ; nextArc;
} else {= currentNode; = currentNode-> nextArc; (nodePointer, firstArc);
};
} (noOneBefore) = false; = currentNode-> nextArc;
}
} else {> oneArc.outVertexId = counter +1; = currentNode-> nextArc;
} + +;
} = firstArc; (currentNode! = NULL) {(currentNode-> oneArc.inVertexId == 0) {= currentNode-> nextArc;;
} = currentNode-> oneArc.outVertexId; ((currentNode! = NULL) && (currentNode-> oneArc.outVertexId == currentId)) {> oneArc.inVertexId = foundInArray (currentNode-> oneArc.inVertexId, newVertexId, NUM_VERTEX-1) +1; = currentNode-> nextArc;
}
}
} printNeiborhoodsList (DirectedGraph * firstNode, ostream * stream, int NUM_VERTEX, bool saveMode, string title = "") {* currentNode = firstNode; currentVertex; (! title.empty ())
* stream <
oneArc.outVertexId;
* stream < oneArc.inVertexId; = currentNode-> nextArc; ((currentNode! = NULL) && (currentNode-> oneArc.outVertexId == currentVertex)) {
* stream <<'' < oneArc.inVertexId; = currentNode-> nextArc;
}
}
} else {(currentNode! = NULL) {
* stream < oneArc.outVertexId) <<":";
* stream < oneArc.inVertexId; = currentNode-> nextArc; ((currentNode! = NULL) && (currentNode-> oneArc.outVertexId == currentVertex)) {
* stream <<'' < oneArc.inVertexId; = currentNode-> nextArc;
}
}
}
} ** completeAdjacencyMatrix (DirectedGraph * firstNode, int NUM_VERTEX) {* currentNode = firstNode; currentId, rowCounter, colCounter; ** adjacencyMatrix = new bool * [NUM_VERTEX]; (rowCounter = 0; rowCounter < ; NUM_VERTEX; rowCounter + +) {[rowCounter] = new bool [NUM_VERTEX]; (colCounter = 0; colCounter