New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gca

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gca

Use classic algorithms for Graphs.

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

gca

Graph Classical Algorithms: Use classic algorithms like BFS and Edmonds Krap on graphs.

Installation

npm i gca

Usage

const gca = require('gca');
const tool = new gca();

let graph = tool.CreateGraph();
graph.addNode(1);
graph.addNode(2);
graph.addEdge(1, 2);
let bfsGraph = tool.BFS(graph, 1);
let flowGraph = tool.CreateFlowGraph();
flowGraph.addEdge(flowGraph.s, flowGraph.t);
let maxFlow = tool.EdmondsKarp(flowGraph);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

API

Full documentation can be found here.

A changelog file can be found here.

Also, there an example.js page.

Author

Amir Liberzon

LinkedIn Profile
Github Profile

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Keywords

graph

FAQs

Package last updated on 07 Dec 2019

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