Exemplo n.º 1
0
void p3()
{
    struct flowNetwork * fN =createGraph();
    maximizeFlowNetwork(fN, 0, 8);
    printAdjMat(fN->adjMatrix);
    deleteFlowNetwork(fN);
}
Exemplo n.º 2
0
void p1(){
    struct flowNetwork * fN =createGraph();
    int i;
    printAdjMat(fN->adjMatrix);
    printf("Parent Array: ");
    for (i=0; i<NODES; i++) {
        printf("%d ", fN->parent[i]);
    }
    printf("\nVisited Nodes Array: ");
    for (i=0; i<NODES; i++) {
        printf("%d ", fN->visitedNodes[i]);
    }
    printf("\n");
    deleteFlowNetwork(fN);
}