Socket
Socket
Sign inDemoInstall

graphology-traversal

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    graphology-traversal

Traversal functions for graphology.


Version published
Maintainers
1
Install size
19.8 kB
Created

Readme

Source

Build Status

Graphology Traversal

Miscellaneous traversal functions to be used with graphology.

Installation

npm install graphology-traversal

Usage

  • dfs

dfs

Perform a DFS over the given graph using a callback.

import {dfs} from 'graphology-traversal';

dfs(graph, function(node, attr) {
  console.log(node, attr);
});

Arguments

  • graph Graph: a graphology instance.
  • callback function: iteration callback taking the traversed node and its attributes.

Keywords

FAQs

Last updated on 14 Nov 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc