My network graph was drawn correctly. For the first group of nodes network graph is Shown correctly but when a second second group is added, the new group moved further away