but my scenario itself starts like(if user enters valid data)...the question given to me is tat......
fine... is my way of representing graph is efficient....can i optimize it sumhw(reducing the running time)