Positioning my group node,

HI

I need help in positioning my group node,
In the attached image i am not able to understand why my 2nd internal block is coming down ,

It should come at right side of first if block

Json Data

{ "class": "go.GraphLinksModel",
  "linkFromPortIdProperty": "fromPort",
  "linkToPortIdProperty": "toPort",
  "nodeDataArray": [ 
{"key":10000000001, "category":"Start", "text":"Start", "eventType":1, "eventDimension":1, "item":"start", "loc":"250 38.5"},
{"key":1, "category":"activity", "text":"OpenBrowser", "item":"generic task", "taskType":0, "loc":"250 127.5"},
{"key":2, "category":"subprocess", "text":"If/EndIf Block", "item":"generic task", "taskType":0, "isGroup":true, "isSubProcess":true, "loc":"182.609343625 159.348916015625"},
{"key":1002, "category":"If", "text":"Yes", "item":"start", "taskType":0, "group":2, "gatewayType":4, "eventType":1, "eventDimension":1, "loc":"50.5 245.82656249999997"},
{"key":3, "category":"activity", "text":"TypeTextOnEditBox", "item":"generic task", "taskType":0, "group":2, "loc":"148.5 231.32656249999997"},
{"key":4, "category":"subprocess", "text":"If/EndIf Block", "item":"generic task", "taskType":0, "isGroup":true, "isSubProcess":true, "loc":"182.609343625 159.348916015625", "group":2},
{"key":1004, "category":"If", "text":"Yes", "item":"start", "taskType":0, "group":4, "gatewayType":4, "eventType":1, "eventDimension":1, "loc":"252 268.653125"},
{"key":5, "category":"activity", "text":"SelectRadioButton", "item":"generic task", "taskType":0, "group":4, "loc":"350 254.15312499999996"},
{"key":6, "category":"activity", "text":"SelectWindow", "item":"generic task", "taskType":0, "group":4, "loc":"446 254.15312499999996"},
{"key":1011, "category":"Else", "text":"No", "item":"start", "taskType":0, "gatewayType":4, "eventType":1, "eventDimension":1, "group":4, "loc":"249.5 343.65312499999993"},
{"key":8, "category":"activity", "text":"ClickTableCell", "item":"generic task", "taskType":0, "group":4, "loc":"345 344.15312499999993"},
{"key":10, "category":"subprocess", "text":"If/EndIf Block", "item":"generic task", "taskType":0, "isGroup":true, "isSubProcess":true, "loc":"182.609343625 159.348916015625", "group":2},
{"key":1010, "category":"If", "text":"Yes", "item":"start", "taskType":0, "group":10, "gatewayType":4, "eventType":1, "eventDimension":1, "loc":"56 447.97968749999995"},
{"key":11, "category":"activity", "text":"SelectDropDownItem", "item":"generic task", "taskType":0, "group":10, "loc":"154 433.47968749999995"},
{"key":1016, "category":"Else", "text":"No", "item":"start", "taskType":0, "gatewayType":4, "eventType":1, "eventDimension":1, "group":10, "loc":"53.5 522.9796875"},
{"key":13, "category":"activity", "text":"SelectRadioButton", "item":"generic task", "taskType":0, "group":10, "loc":"149 523.4796875"},
{"key":1019, "category":"Else", "text":"No", "item":"start", "taskType":0, "gatewayType":4, "eventType":1, "eventDimension":1, "group":2, "loc":"255 410.15312499999993"},
{"key":16, "category":"activity", "text":"SelectWindow", "item":"generic task", "taskType":0, "group":2, "loc":"350.5 410.65312499999993"},
{"key":18, "category":"activity", "text":"SelectRadioButton", "item":"generic task", "taskType":0, "loc":"250 615.4796875"}
 ],
  "linkDataArray": [ 
{"from":10000000001, "to":1, "points":[250,67,250,77,250,87,250,87,250,97,250,107]},
{"from":1, "to":2, "points":[250,148,250,158,250,168,250,168,250,177.99999999999997,250,187.99999999999997]},
{"from":1002, "to":3, "points":[90.5,245.82656249999997,100.5,245.82656249999997,100.5,238.57656249999997,100.5,238.57656249999997,100.5,231.32656249999997,110.5,231.32656249999997]},
{"from":3, "to":4, "points":[186.5,231.32656249999997,196.5,231.32656249999997,196.5,260.908203125,196.5,260.908203125,196.5,290.48984375,206.5,290.48984375]},
{"from":1004, "to":5, "points":[292,268.653125,302,268.653125,302,261.403125,302,261.403125,302,254.15312499999996,312,254.15312499999996]},
{"from":5, "to":6, "points":[388,254.15312499999996,398,254.15312499999996,398,254.15312499999996,398,254.15312499999996,398,254.15312499999996,408,254.15312499999996]},
{"from":1011, "to":8, "points":[287,343.653125,297,343.653125,297,343.903125,297,343.903125,297,344.153125,307,344.153125]},
{"from":4, "to":10, "points":[206.5,290.48984375,196.5,290.48984375,196.5,380.15312499999993,207.5,380.15312499999993,207.5,469.81640624999994,197.5,469.81640624999994]},
{"from":1010, "to":11, "points":[96,447.97968749999995,106,447.97968749999995,106,440.72968749999995,106,440.72968749999995,106,433.47968749999995,116,433.47968749999995]},
{"from":1016, "to":13, "points":[91,522.9796875,101,522.9796875,101,523.2296875,101,523.2296875,101,523.4796875,111,523.4796875]},
{"from":1019, "to":16, "points":[292.5,410.15312499999993,302.5,410.15312499999993,302.5,410.40312499999993,302.5,410.40312499999993,302.5,410.65312499999993,312.5,410.65312499999993]},
{"from":2, "to":18, "points":[250,554.9796875,250,564.9796875,250,574.9796875,250,574.9796875,250,584.9796875,250,594.9796875]}
 ]}

What is your Group.layout?

I am not using any of Group.layout. Just simply creating nodes and linking them

Also i have one more question here See any link coming from Yes(diamond) node is not properly aligned .How to fix this ?

That’s the responsibility of the layout.

Maybe you want to set Group.layout to be a TreeLayout or LayeredDigraphLayout. But I don’t know enough about the graphs you might have in order to provide a recommendation.