On eulerian and hamiltonian graphs and line graphs