The Feyman graph treatment of the initial and final state interactions in direct nuclear reactions