Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

tarjan

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tarjan

Tarjan-Lengauer dominator search algorithm

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

Tarjan-Languer Fast Algorithm for Finding Dominators in a Flow Graph

API

// List of all nodes with their children in a flow graph
// (i.e. a flow graph itself)
var nodes = [
  { children: [...] },
  { children: [...] }
];

var tarjan = require('tarjan').create('children', 'idom');
tarjan(nodes);

console.log(nodes[1].idom);

Keywords

dominator

FAQs

Package last updated on 07 Jan 2014

Did you know?

Socket

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.

Install

Related posts