I would like to find path of fixed length (given while running the program) in undirected graph. I\'m using adjacency matrix of my graph. I tried to use some algorithms like
The problem as stated is NP-complete. Yo can trivially solve Hamiltonian Cycle Problem, given an efficient algorithm for solving Your problem.
Therefore, no polynomnial time solution exists (unless P=NP). For an exhaustive search, exponential time solution, check @amit's answer.