导出cytoscape.js中的选定节点和边 [英] Export selected node and edge in cytoscape.js

查看:263
本文介绍了导出cytoscape.js中的选定节点和边的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种方法可以导出图形中的选定节点和边,并在另一个图形中显示选定的节点和边。 maxkfranz说我们可以导出为json。

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。

推荐答案

您是否尝试过以下方法?

Have you tried something along the lines of:

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

编辑:API现在还允许多个元素,例如 cy。$(’:selected')。jsons()

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

这篇关于导出cytoscape.js中的选定节点和边的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆