Added logic to auto generate graph of io