Network

As of 4.0, the network consists of individual modules which handle specific parts of the network. These modules have their own docs, options, methods and events which you can access by clicking on the modules in the list below.

Modules

canvas Handles the HTML part of the network.
clustering Provides the clustering api, giving users full control over the formed clusters.
configure Generates an interactive option editor with filtering.
edges Handles the creation and deletion of edges and contains the global edge options and styles.
groups Contains the groups and some options on how to handle nodes with non-existing groups.
interaction Used for all user interaction with the network. Handles mouse and touch events as well as the navigation buttons and the popups.
layout Governs the initial and hierarchical positioning.
manipulation Supplies an API and optional GUI to alter the data in the network.
nodes Handles the creation and deletion of nodes and contains the global node options and styles.
physics Does all the simulation moving the nodes and edges to their final positions, also governs stabilization.
rendering Handles the rendering aspect of vis. It governs the render loop, it draws the nodes and edges and provides events to allow users to hook into the drawing.
selection Handles the selection of nodes and edges.
view Acts as the camera that looks on the canvas. Does the animation, zooming and focusing.

All Methods

This is a list of all the methods in the public API. They are collected here from all individual modules.

name returns description
destroy() none Remove the network from the DOM and remove all Hammer bindings and references.
setData({
nodes: vis DataSet/Array,
edges: vis DataSet/Arary
})
none Override all the data in the network. If stabilization is enabled in the physics module, the network will stabilize again. This method is also performed when first initializing the network.
setOptions(Object options) none Set the options. All available options can be found in the modules above. Each module requires it's own container with the module name to contain its options.

All Events

This is a list of all the events in the public API. They are collected here from all individual modules.