cytoscape.js - Cytoscape: finding the leaves of a specific node -


i suppose possible find leaves of particular node. first line of code works, second returns empty object {}

what doing wrong? thanks!

console.log( cy.nodes().leaves().jsons() ); console.log( cy.nodes("[id='1.1']").leaves().jsons() );

selectors can't have metacharacters, .. need escape them. refer http://js.cytoscape.org/#selectors/notes-amp-caveats


Comments

Popular posts from this blog

Multilayer CSV to filtered excel -

Listboxes in c# -

ios - Why must I define variables twice in the Header file? -