Can links and nodes be filtered in a vis.js network?
I have configured a DataSet for both nodes and edges as follows:
function drawNetwork(container){
var nodes = new vis.DataSet();
populateNodes(nodes); // implementation details skipped
var edges = new vis.DataSet();
populateEdges(edges); // implementation details skipped
var data = {
nodes: nodes,
edges: edges
};
// initialize the network
var options = {...}
var network = new vis.Network(container, data, options);
}
Thank you.