What's the fastest force-directed network graph engine for large data sets?

前端 未结 5 1002
一向
一向 2020-12-25 15:17

We currently have a dynamically updated network graph with around 1,500 nodes and 2,000 edges. It\'s ever-growing. Our current layout en

相关标签:
5条回答
  • 2020-12-25 15:33

    I would take a look at http://neo4j.org/ its open source which is beneficial in your case so you can customize it to your needs. The github account can be found here.

    0 讨论(0)
  • 2020-12-25 15:36

    I wrote a JavaScript-based graph drawing library VivaGraph.js.

    It calculates layout and renders graph with 2K+ vertices, 8.5K edges in ~10-15 seconds. If you don't need rendering part it should be even faster.

    Here is a video demonstrating it in action: WebGL Graph Rendering With VivaGraphJS.

    Online demo is available here. WebGL is required to view the demo but is not needed to calculate graphs layouts. The library also works under node.js, thus could be used as a service.

    Example of API usage (layout only):

    var graph = Viva.Graph.graph(),
        layout = Viva.Graph.Layout.forceDirected(graph);
    
    graph.addLink(1, 2);
    layout.run(50); // runs 50 iterations of graph layout
    
    // print results:
    graph.forEachNode(function(node) { console.log(node.position); })
    

    Hope this helps :)

    0 讨论(0)
  • 2020-12-25 15:42

    The Gephi Toolkit might be what you need: some layouts are very fast yet with a good quality: http://gephi.org/toolkit/

    30 secondes to 2 minutes are enough to layout such a graph, depending on your machine. You can use the ForAtlas layout, or the Yifan Hu Multilevel layout.

    For very large graphs (+50K nodes and 500K links), the OpenOrd layout wil

    0 讨论(0)
  • 2020-12-25 15:47

    In a commercial scenario, you might also want to look at the family of yFiles graph layout and visualization libraries.

    Even the JavaScript version of it can perform layouts for thousands of nodes and edges using different arrangement styles. The "organic" layout style is an implementation of a force directed layout algorithm similar in nature to the one used in Neo4j's browser application. But there are a lot more layout algorithms available that can give better visualizations for certain types of graph structures and diagrams. Depending on the settings and structure of the problem, some of the algorithms take only seconds, while more complex implementations can also bring your JavaScript engine to its knees. The Java and .net based variants still perform quite a bit better, as of today, but the JavaScript engines are catching up.

    You can play with these algorithms and settings in this online demo.

    Disclaimer: I work for yWorks, which is the maker of these libraries, but I do not represent my employer on SO.

    0 讨论(0)
  • 2020-12-25 15:49

    I would have a look at OGDF, specifically http://www.ogdf.net/doku.php/tech:howto:frcl I have not used OGDF, but I do know that Fast Multipole Multilevel is a good performant algorithm and when you're dealing with the types of runtimes involved with force directed layout with the number of nodes you want, that matters a lot. Why, among other reasons, that algorithm is awesome: Fast Multipole method. The fast multipole method is a matrix multiplication approximation which reduces the O() runtime of matrix multiplication for approximation to a small degree. Ideally, you'd have code from something like this: http://mgarland.org/files/papers/layoutgpu.pdf but I can't find it anywhere; maybe a CUDA solution isn't up your alley anyways.

    Good luck.

    0 讨论(0)
提交回复
热议问题