added new method loadEdgefromFile and made dfs algorithm