问题
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