FrankL
FrankL

Reputation: 1

cytoscape.js add node in layout breadthfirst

I start cy (layout=breathfirst) with a group of nodes and egdes. cy calculate the tree-structure very well. But if I add a node later, cy placed the node on position 0,0. How I can inform cy to recalculate the tree structure?

Upvotes: 0

Views: 331

Answers (1)

maxkfranz
maxkfranz

Reputation: 12242

Run the breadthfirst layout again: http://js.cytoscape.org/#cy.layout

Upvotes: 0

Related Questions