Add new input format to work with real world data
Fix but where source and target are the same, target should be the second node, index 1