Giter Club home page Giter Club logo

Changelog

0.8.5 - gulp updated to 4.0, re-worked gulpfile.js, webpack now only producing minified version (production settings)

Graphinius JS

Generic graph (analysis) library in Typescript

Running tests

In order to run the tests, you need an external "Simd-Handler" - any object that implements a certain interface, which currently is:

export interface NumericHandler {
	tensor2d: Function;
	matMul: Function;
}

The best way to achieve this for now is to install a respective module globally, e.g.

npm i -g @tensorflow/tfjs-node

and then link it locally via

npm link @tensorflow/tfjs-node

Generate Documentation

typedoc

just execute the command in a bash within the root folder - the configuration in tsconfig.js should automatically be loaded

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

NOTES

DUPLICATES

@describe we check for duplicate edges on a graph level, but not on a node level

  • when systematically (batch) instantiationg from an input source, our input classes check for duplicate edges
  • when programmatically building a graph manually, the graph class will reject duplicates, whereas the node classes used internally will not -> don't use .addEdge...() manually!

graphinius's Projects

graphinius-demo-outdated icon graphinius-demo-outdated

OUTDATED -- Small demo site just to demonstrate how to work with GraphiniusJS (+ visualization) in the browser

graphinius-recommender icon graphinius-recommender

Graphinius-based recommender algorithms for iNodis client, based on other popular graph DB recommenders

graphinius-sample-data icon graphinius-sample-data

Sample networks in different categories ready to be used with Graphinius VIS - current focus: social networks, resource networks and small knowledge graphs (~<few thousand nodes, tens of thousands of edges)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.