小编Dat*_*uvu的帖子

在cytoscape.js中使用边缘权重进行力导向布局(CoSE)

  1. 我不确定如何最好地利用边缘权重(例如两个相互作用的蛋白质之间相互作用的强度),同时使用cytoscape.js中的CoSE插件生成力导向布局.有人可以提供任何指示.它应该是"idealEdgeLength"还是"edgeElasticity"?

  2. (编辑)以下是一个数字,显示了我目前得到的(A)和我想要实现的目标(B).以下是我用于生成布局的参数.

谢谢,达塔.

PS: 点击查看显示当前(标记为"A")和预期(标记为"B")布局的图形.以下是"A"的布局选项.

    var options = {
        name: 'cose',
        // Called on `layoutready`
        ready: function () { },
        // Called on `layoutstop`
        stop: function () { },
        // Whether to animate while running the layout
        animate: true,
        // Number of iterations between consecutive screen positions update (0 -> only updated on the end)
        refresh: 20,
        // Whether to fit the network view after when done
        fit: true,
        // Padding on fit
        padding: 30,
        // Constrain layout bounds; …
Run Code Online (Sandbox Code Playgroud)

cytoscape.js

6
推荐指数
1
解决办法
1421
查看次数

标签 统计

cytoscape.js ×1