0

我是 Cytoscape.js 的新手,所以我可能遗漏了一些明显的东西......

我知道如何在 D3.js 中执行此操作,但需要更多功能来显示大量节点(> 1,000)的集群,并且不需要可视化链接。

在此先感谢您指出正确的方向...

4

1 回答 1

0

原来我在看 WebCola 的文档,而不是 Cytoscape.js :-)

elements: {
      nodes: [
        { data: { id: 'a' } },
        { data: { id: 'b' } },
        { data: { id: 'c' } },
        { data: { id: 'd' } },
        { data: { id: 'e' } }
      ], 

      edges: [
        { data: { id: 'ae', weight: 1, source: 'a', target: 'e' } },
        { data: { id: 'ab', weight: 3, source: 'a', target: 'b' } },
        { data: { id: 'be', weight: 4, source: 'b', target: 'e' } },
        { data: { id: 'bc', weight: 5, source: 'b', target: 'c' } },
        { data: { id: 'ce', weight: 6, source: 'c', target: 'e' } },
        { data: { id: 'cd', weight: 2, source: 'c', target: 'd' } },
        { data: { id: 'de', weight: 7, source: 'd', target: 'e' } }
      ]
    }
于 2016-12-30T22:11:59.087 回答