Home » Modeling » Eclipse Layout Kernel » Same level of nodes
Same level of nodes [message #1818172] |
Mon, 09 December 2019 10:41 |
Paweł Wojtków Messages: 1 Registered: December 2019 |
Junior Member |
|
|
I am trying to implement tree using elk and almost everything is working fine but now I am struggling with these two nodes marked on red which should be at the same level and I don't quite understand how positioning works and if this particular scenario can be fixed using some layout options or adding new field called "level" to nodes structure?
[code]{
"children":[
{
"id":43813,
"children":[
{
"id":"42926",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42926,
"harvesterId":"oxrv59AW8owPDllPB2zW",
"content":{
"time":1564751974444,
"version":"2.15.0",
"blocks":[
{
"data":{
"text":"FOLFOX ± bevacizumab "
},
"type":"paragraph"
},
{
"data":{
"text":"or "
},
"type":"paragraph"
},
{
"data":{
"text":" CAPEOX ± bevacizumab "
},
"type":"paragraph"
},
{
"data":{
"text":"or "
},
"type":"paragraph"
},
{
"data":{
"text":"FOLFOX + (cetuximab or panitumumab) <sup>c</sup> "
},
"type":"paragraph"
},
{
"data":{
"text":"( KRAS/NRAS/BRAF WT only) "
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
42930
],
"footnotes":[
42655
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(0,0)"
},
"width":200,
"height":216
},
{
"id":"42930",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42930,
"harvesterId":"a1dade8d-9863-4638-af9b-0650059f015e",
"content":{
"blocks":[
{
"data":{
"text":"Progression"
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
42933
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(1,0)"
},
"width":200,
"height":48
},
{
"id":"42942",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42942,
"harvesterId":"QnfAlfxjo7JzRYr8DVB4",
"content":{
"time":1564752059116,
"version":"2.15.0",
"blocks":[
{
"data":{
"text":"FOLFIRI <sup>d</sup> ± bevacizumab "
},
"type":"paragraph"
},
{
"type":"paragraph",
"data":{
"text":"or "
}
},
{
"data":{
"text":"FOLFIRI <sup>d</sup> + (cetuximab or panitumumab) <sup>c</sup>"
},
"type":"paragraph"
},
{
"data":{
"text":" ( KRAS/NRAS/BRAF WT only) "
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
42945
],
"footnotes":[
42655,
42674
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(2,0)"
},
"width":200,
"height":172
},
{
"id":"42920",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42920,
"harvesterId":"242d20e5-7837-4185-aa0b-378badf8bcab",
"content":{
"blocks":[
{
"type":"paragraph",
"data":{
"text":"Patient \nappropriate \nfor intensive \ntherapy"
}
}
]
},
"outgoingNodes":[
42926,
42942,
42958,
43719
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(3,0)"
},
"width":200,
"height":68
},
{
"id":"42945",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42945,
"harvesterId":"372da0cc-c646-496e-b4e7-f08a70dc2ea7",
"content":{
"blocks":[
{
"type":"paragraph",
"data":{
"text":"Progression"
}
}
]
},
"outgoingNodes":[
42949
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(4,0)"
},
"width":200,
"height":48
},
{
"id":"42958",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42958,
"harvesterId":"cj9CWe3Gwc4RzuqROeU3",
"content":{
"time":1564752112907,
"version":"2.15.0",
"blocks":[
{
"data":{
"text":"FOLFOXIRI <sup>d</sup> ± bevacizumab "
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
43735
],
"footnotes":[
42674
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(5,0)"
},
"width":200,
"height":71
},
{
"id":"43735",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43735,
"harvesterId":"7fd352b3-ea2a-4fdd-ae45-d40caaf038a1",
"content":{
"blocks":[
{
"type":"paragraph",
"data":{
"text":"Progression"
}
}
]
},
"outgoingNodes":[
43731
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(6,0)"
},
"width":200,
"height":48
},
{
"id":"43719",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43719,
"harvesterId":"4gDPYjY6k2PP6nw2Px7f",
"content":{
"version":"2.15.0",
"blocks":[
{
"data":{
"text":"5-FU/leucovorin (infusional preferred) ± bevacizumab <sup>e</sup>"
},
"type":"paragraph"
},
{
"type":"paragraph",
"data":{
"text":"or "
}
},
{
"data":{
"text":"Capecitabine ± bevacizumab <sup>e</sup>"
},
"type":"paragraph"
}
],
"time":1564752356464
},
"outgoingNodes":[
43720
],
"footnotes":[
42688
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(7,0)"
},
"width":200,
"height":164
},
{
"id":"43720",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43720,
"harvesterId":"b4a7d1b9-1a24-414d-888d-c96b4fd2ff43",
"content":{
"blocks":[
{
"data":{
"text":"Progression"
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
43723
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(8,0)"
},
"width":200,
"height":48
},
{
"id":"43739",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43739,
"harvesterId":"GhRR4Fw718t3PPNTJeBY",
"content":{
"time":1564751861299,
"version":"2.15.0",
"blocks":[
{
"type":"paragraph",
"data":{
"text":"Infusional 5-FU + leucovorin ± bevacizumab "
}
},
{
"data":{
"text":"or "
},
"type":"paragraph"
},
{
"data":{
"text":"Capecitabine ± bevacizumab "
},
"type":"paragraph"
},
{
"type":"paragraph",
"data":{
"text":"or "
}
},
{
"data":{
"text":"(Cetuximab or panitumumab) <sup>c</sup> "
},
"type":"paragraph"
},
{
"type":"paragraph",
"data":{
"text":"(category 2B) "
}
},
{
"data":{
"text":" ( KRAS/NRAS/BRAF WT only) "
},
"type":"paragraph"
},
{
"type":"paragraph",
"data":{
"text":"or "
}
},
{
"data":{
"text":"(Nivolumab or pembrolizumab) (dMMR/MSI-H only) <sup>c</sup><sup>f</sup>"
},
"type":"paragraph"
},
{
"type":"paragraph",
"data":{
"text":"or "
}
},
{
"data":{
"text":"Nivolumab + ipilimumab (dMMR/MSI-H only) <sup>c</sup><sup>f</sup> (category 2B)"
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
43742,
43013
],
"footnotes":[
42655,
42699
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(9,0)"
},
"width":480,
"height":307
},
{
"id":"43742",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43742,
"harvesterId":"372914d8-d4d6-44cb-b562-c036b7337eec",
"content":{
"blocks":[
{
"data":{
"text":"Improvement in \nfunctional status"
},
"type":"paragraph"
}
]
},
"outgoingNodes":[
43744
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(10,0)"
},
"width":200,
"height":68
},
{
"id":"43744",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43744,
"harvesterId":"cb5a66e2-6b73-4d7b-969a-61e3a5b41939",
"content":{
"time":1563902695015,
"version":"2.15.0",
"blocks":[
{
"type":"paragraph",
"data":{
"text":"Consider initial therapy <sup>g</sup>"
}
}
]
},
"outgoingNodes":[
42926,
42942,
42958,
43719
],
"footnotes":[
42703
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(11,0)"
},
"width":200,
"height":51
},
{
"id":"42975",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":42975,
"harvesterId":"0c525e3c-fb06-4c28-81fa-e83dda58f8cd",
"content":{
"blocks":[
{
"type":"paragraph",
"data":{
"text":"Patient not \nappropriate \nfor intensive \ntherapy"
}
}
]
},
"outgoingNodes":[
43739
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(12,0)"
},
"width":200,
"height":68
},
{
"id":"43015",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43015,
"harvesterId":"11c09182-416d-4ac8-a547-79113b59261c",
"content":{
"version":"2.15.0",
"blocks":[
{
"data":{
"text":"Best supportive care. See NCCN Guidelines \nfor Palliative Care."
},
"type":"paragraph"
}
],
"time":1563578812414
},
"outgoingNodes":[
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(13,0)"
},
"width":200,
"height":88
},
{
"id":"43013",
"x":0,
"y":0,
"gdlData":{
"node":{
"type":"NodeDto",
"id":43013,
"harvesterId":"171570ad-efdc-40d2-ad02-9895fc431930",
"content":{
"blocks":[
{
"type":"paragraph",
"data":{
"text":"No improvement in \nfunctional status"
}
}
]
},
"outgoingNodes":[
43015
],
"footnotes":[
],
"section":43813,
"tableItem":43770
},
"isNextStep":true,
"stepIndex":null,
"parentStepIndex":null,
"isLastStep":false,
"sectionCustomId":43813
},
"layoutOptions":{
"elk.position":"(14,0)"
},
"width":200,
"height":68
}
],
"gdlData":{
"section":{
"id":43813,
"harvesterId":"741d4d23-64f6-4a74-a237-2210e505fb70",
"name":"CONTINUUM OF CARE - SYSTEMIC THERAPY FOR \nADVANCED OR METASTATIC DISEASE \nINITIAL THERAPY ",
"footnotes":[
42647,
42649
],
"nodes":[
42926,
42930,
42942,
42920,
42945,
42958,
43735,
43719,
43720,
43739,
43742,
43744,
42975,
43015,
43013
]
}
},
"layoutOptions":{
"elk.layered.mergeEdges":true,
"elk.layered.spacing.edgeNodeBetweenLayers":40,
"elk.layered.crossingMinimization.semiInteractive":true,
"elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED",
"elk.padding":"[top=40,left=200,bottom=40,right=40]"
}
}
],
"edges":[
{
"id":"42926_42930",
"source":"42926",
"target":"42930",
"gdlData":{
"sourceNodeId":42926,
"targetNodeId":42930,
"selected":false
}
},
{
"id":"42942_42945",
"source":"42942",
"target":"42945",
"gdlData":{
"sourceNodeId":42942,
"targetNodeId":42945,
"selected":false
}
},
{
"id":"42920_42926",
"source":"42920",
"target":"42926",
"gdlData":{
"sourceNodeId":42920,
"targetNodeId":42926,
"selected":false
}
},
{
"id":"42920_42942",
"source":"42920",
"target":"42942",
"gdlData":{
"sourceNodeId":42920,
"targetNodeId":42942,
"selected":false
}
},
{
"id":"42920_42958",
"source":"42920",
"target":"42958",
"gdlData":{
"sourceNodeId":42920,
"targetNodeId":42958,
"selected":false
}
},
{
"id":"42920_43719",
"source":"42920",
"target":"43719",
"gdlData":{
"sourceNodeId":42920,
"targetNodeId":43719,
"selected":false
}
},
{
"id":"42958_43735",
"source":"42958",
"target":"43735",
"gdlData":{
"sourceNodeId":42958,
"targetNodeId":43735,
"selected":false
}
},
{
"id":"43719_43720",
"source":"43719",
"target":"43720",
"gdlData":{
"sourceNodeId":43719,
"targetNodeId":43720,
"selected":false
}
},
{
"id":"43739_43742",
"source":"43739",
"target":"43742",
"gdlData":{
"sourceNodeId":43739,
"targetNodeId":43742,
"selected":false
}
},
{
"id":"43739_43013",
"source":"43739",
"target":"43013",
"gdlData":{
"sourceNodeId":43739,
"targetNodeId":43013,
"selected":false
}
},
{
"id":"43742_43744",
"source":"43742",
"target":"43744",
"gdlData":{
"sourceNodeId":43742,
"targetNodeId":43744,
"selected":false
}
},
{
"id":"43744_42926",
"source":"43744",
"target":"42926",
"gdlData":{
"sourceNodeId":43744,
"targetNodeId":42926,
"selected":false
}
},
{
"id":"43744_42942",
"source":"43744",
"target":"42942",
"gdlData":{
"sourceNodeId":43744,
"targetNodeId":42942,
"selected":false
}
},
{
"id":"43744_42958",
"source":"43744",
"target":"42958",
"gdlData":{
"sourceNodeId":43744,
"targetNodeId":42958,
"selected":false
}
},
{
"id":"43744_43719",
"source":"43744",
"target":"43719",
"gdlData":{
"sourceNodeId":43744,
"targetNodeId":43719,
"selected":false
}
},
{
"id":"42975_43739",
"source":"42975",
"target":"43739",
"gdlData":{
"sourceNodeId":42975,
"targetNodeId":43739,
"selected":false
}
},
{
"id":"43013_43015",
"source":"43013",
"target":"43015",
"gdlData":{
"sourceNodeId":43013,
"targetNodeId":43015,
"selected":false
}
}
],
"id":"root",
"layoutOptions":{
"elk.algorithm":"layered",
"elk.direction":"DOWN",
"elk.hierarchyHandling":"INCLUDE_CHILDREN",
"elk.layered.mergeEdges":true,
"elk.layered.spacing.edgeNodeBetweenLayers":40,
"elk.layered.crossingMinimization.semiInteractive":true,
"elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED"
}
}
[code]
-
Attachment: graph.png
(Size: 46.67KB, Downloaded 265 times)
|
|
| |
Goto Forum:
Current Time: Sat Oct 12 19:20:40 GMT 2024
Powered by FUDForum. Page generated in 0.03950 seconds
|