#include #include #include using namespace std; bool isconnected((const int*const&const,int); bool isconnect(const int *const*const,int,int,int,int*const); int* fill(int*const,int,int); bool exit(const int*const,int,int); int findlen(const int*const*const,int,int,int,int*const); int main() { int n,**p; cout<<"enter count of vertex:"; cin>>n; p=new int*[n]; for(int u=0;i>p[i][j]; if(!isconnected(p,n)) cout<<"graph is not connected."; else { int d=0,*stack=new int[n]; for(int i=0;i"<m?d:m; } cout<