#include#include int adjMatrix[5][5]={ {0, 1,1,1 ,-1}, {1, 0,1,-1,1}, {1, 1,0,1, 1}, {1,-1,1,0, 1}, {-1,1,1,1, 0}}; int visitedMark[5];int vtxNum=5;int FindPath(int startVtx,int endVtx,int pathLen,int targetPathLen){ int targetPathNum=0; if(visitedMark[startVtx]==1)return 0; visitedMark[startVtx]=1; if(startVtx==endVtx) { printf("Find a path with length of %d\n",pathLen); if(pathLen==targetPathLen) targetPathNum++; } else { for(int i=0;i