Reformatting and refactoring

General reformatting
Refacoring of GraphInput.java