An open API service indexing awesome lists of open source software.

https://github.com/t1/graph

A straight forward Graph class with Nodes that support custom Marks.
https://github.com/t1/graph

Last synced: about 1 year ago
JSON representation

A straight forward Graph class with Nodes that support custom Marks.

Awesome Lists containing this project

README

          

# Graph [![latest-version](https://maven-badges.herokuapp.com/maven-central/com.github.t1/graph/badge.svg)](https://search.maven.org/artifact/com.github.t1/graph) [![Build Status](https://github.com/t1/graph/actions/workflows/maven.yml/badge.svg)](https://github.com/t1/graph/actions/workflows/maven.yml)

A straight forward Graph class with Nodes that support custom Marks.

The most interesting part is the Graph#topologicalSort() method, which uses [Tarjan's Strongly Connected Components Algorithm](https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm), so it can report exactly which cycles where found.