Generic graph (analysis) library in Typescript
GraphiniusJS is integrated in our current GraphiniusVIS Demo Site.
Execute the following lines of code in succession to arrive at a simple degree distribution:
Then reproduce the code given below to visualize a first graph:
You can execute a BFS algorithm starting at a random node, then explore the resulting data structure by following this example:
In the above code, the BFS coloring does not necessarily correspond to the BFS result computed in line 3. Colors run from green (start node) to red (most distant node).
You can configure the JSON graph loader for directed mode first:
// ignore explicit direction as specified by file content jsonReader._explicit_direction = false; // interpret all edges as directed instead jsonReader._direction = true;
Then execute the following lines of code to obtain a (random) DFS segmentation: