
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
graphinius
Advanced tools
0.8.5 - gulp updated to 4.0, re-worked gulpfile.js, webpack now only producing minified version (production settings)
Generic graph (analysis) library in Typescript
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
typedoc
just execute the command in a bash within the root folder - the configuration in tsconfig.js should automatically be loaded
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:

@describe we check for duplicate edges on a graph level, but not on a node level
Using networkx but having to port your solution for production? Doing graph-based ML but the pipeline is deep and brittle, therefore not suited for quick prototyping? Don't want to write 50k lines of C++ to roll out your own features? Graphinius is the vision of a modular graph infrastructure consisting of sovereign components compiled to WASM/WASI with thin wrappers to make them usable in multiple other runtimes incl. Rust, Python, Ruby & JS / Node.js. It will therefore be possible to plug its modules into existing Python infrastructure for ML / prototyping, Web applications for demos & light applications, as well as production-type platforms (since WASM can run at near-native speeds). We'll start with sparse matrices & basic graph algorithms on top of them written in Rust, focusing on parallelization & vectorization. First milestone: A drop-in replacement for basic networkx functionality with superior performance & memory usage (using their own test suite in python ;-)
FAQs
Generic graph library in Typescript
The npm package graphinius receives a total of 34 weekly downloads. As such, graphinius popularity was classified as not popular.
We found that graphinius demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.