graph are  updated dynamically and java code for changing orginal data to edge data format