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
Post a Comment