2017 © Pedro Peláez
 

library tarjan

A simple cycle-detection algorithm. Given an edge-edges adjacency list, it returns a list of cycles.

image

tgraboski/tarjan

A simple cycle-detection algorithm. Given an edge-edges adjacency list, it returns a list of cycles.

  • Tuesday, April 18, 2017
  • by whiterook6
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,642 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Tarjan

This is a small script for detecting cycles in a graph., (*1)

Input: an array of vertex-children lists: [[1,2,3], [5,6,7]] means vertex 0 points to vertices 1, 2, and 3, while vertex 1 points to vertices 5, 6, and 7., (*2)

Output: an array of cycles: [[2,3,5,2], [5,6,5], [3,7,9,3]] contains three cycles. The first goes from 2 to 3 to 5 back to 2., (*3)

The Versions

18/04 2017

dev-master

9999999-dev

A simple cycle-detection algorithm. Given an edge-edges adjacency list, it returns a list of cycles.

  Sources   Download

MIT

by Tim Graboski

21/01 2016

1.0.0

1.0.0.0

A simple cycle-detection algorithm. Given an edge-edges adjacency list, it returns a list of cycles.

  Sources   Download

MIT

by Tim Graboski