diff --git a/src/Client/Pages/Cytoscape/CytoscapeGraph.fs b/src/Client/Pages/Cytoscape/CytoscapeGraph.fs index 3985f6c3..e762c2ec 100644 --- a/src/Client/Pages/Cytoscape/CytoscapeGraph.fs +++ b/src/Client/Pages/Cytoscape/CytoscapeGraph.fs @@ -7,9 +7,15 @@ module Graph = let updateLayout() = let layout = cy.Value.layout({| - directed = true - name = "breadthfirst" - padding = 20 + name = "cose" + nodeOverlap = 20 + nodeDimensionsIncludeLabels = true + boundingBox = {| + x1 = 0 + y1 = 0 + w = 600 // set the width + h = 300 // set the height + |} |}) layout.run()