Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
This repository was archived by the owner on Jul 29, 2019. It is now read-only.

Network Question: Performance ~20k Nodes & 35k Edges #2741

@mkollers

Description

@mkollers

Hey guys,

i'm currently working on a project, in which it would be nice to display a really large network graph. At the moment i have 21,012 nodes and 35,242 edges, and vis will draw it! So first of all: Great job, great lib, thanks!

But the physics positioning wasn't finished after 16 hours :-( My Idea is to build a server side worker, which run's prerenders the graph, and saves the positions of the nodes. But ~24h hours is a bit to much for the prerender duration.

Currently i'm working with the following options:

{
    nodes: {
        shape: 'dot',
        borderWidth: 2,
        font: {
            face: 'Roboto, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif',
            size: 14
        }
    }, edges: {
        arrows: {
            from: false,
            to: true
        },
        scaling: {
            min: 12
        },
        smooth: {
            type: 'continuous'
        },
        width: 1,
        font: {
            face: 'Roboto, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif',
            size: 14
        }
    }, layout: {
        randomSeed: 34,
        improvedLayout: false
    }, physics: {
        stabilization: false,
        barnesHut: {
            gravitationalConstant: -80000,
            springConstant: 0.001,
            springLength: 200
        }
    }, interaction: {
        hideEdgesOnDrag: true
    }

Can anyone provide some improvements for the performance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions