Export selected node and edge in cytoscape.js

瘦欲@ 提交于 2020-01-04 04:33:29

问题


is there a way that I can export selected node and edge from graph and display the selected ones in another graph. maxkfranz said that we can export as json. Do you have any idea how I can do that? Thanks。


回答1:


Have you tried something along the lines of:

cy.$(':selected').json()

Edit : The API now also allows for multiple elements, e.g. cy.$(':selected').jsons()



来源:https://stackoverflow.com/questions/19620146/export-selected-node-and-edge-in-cytoscape-js

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!