implement eulerian path by C