New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/AhmadMuzakkir/directed-acyclic-graph

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/AhmadMuzakkir/directed-acyclic-graph

  • v0.0.0-20190210041359-e571452a7056
  • Source
  • Go
  • Socket score

Version published
Created
Source

Directed Acyclic Graph

Demonstrate an implementation of directed acyclic graph (DAG) in GO

Store the graph into Badger or BoltDB

Getting Started

Implementation

Refer to model package for the DAG implementation and generation.

Config

Refer to cmd/config.go

  • To change the paths of the Badger and BoltDB.
  • To change selected database type.

Generate a graph

Use cmd/generate/main.go to generate the graph and store it into the selected database.

Benchmarks

Refer to model/dag_test.go for the graph benchmarks.

Sample Benchmarks

Graph with 100,000 vertices and 99,999 edges.

BenchmarkRunAverage
BenchmarkGenerateDAG-42000000000393103640 ns/op
BenchmarkReach-420000000004222 ns/op
BenchmarkConditionalReach-420000000002355 ns/op
BenchmarkList-420000000005306 ns/op
BenchmarkConditionalList-420000000003728 ns/op

FAQs

Package last updated on 10 Feb 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc