TypeScript JavaScript Python Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
build
dist
src
test
test_performance/input
typings
.gitignore
.npmignore
LICENSE
README.md
_config.yml
distlinks.lock
graphinius.d.ts
graphinius.d.ts.manual
gulpfile.js
index.js
install_dist.js
loc.sh
package-lock.json
package.json
tsconfig.json
webpack.config.js

README.md

Graphinius JS

Generic graph (analysis) library in Typescript

Demo

GraphiniusJS is integrated in our current GraphiniusVIS Demo Site.

Execute the following lines of code in succession to arrive at a simple degree distribution:

Simple Degree Distribution

Then reproduce the code given below to visualize a first graph:

First graph visualization

You can execute a BFS algorithm starting at a random node, then explore the resulting data structure by following this example:

BFS Color Map

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:

DFS Color Map