Without printing of edges and finding of solution