Converts and IGraph graph into a visNetwork.
The IGraph graph which we want to convert.
Converts an IGraph into a visNetwork which has a hiearchical layout. Made some performance boosting. But it's still interactive. This function also makes the nice tree layout for the graph.
A fully functional visNetwork
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.