flowtick / graphs

A simple graph library for Scala
https://flowtick.github.io/graphs
Apache License 2.0
10 stars 4 forks source link

Replace sub-class hierarchy with type class approach #1

Closed adrobisch closed 4 years ago

adrobisch commented 6 years ago

Currently the graph types are bound to be sub-type of the Edges and Nodes and the type parameters have to be carried around. These creates lots of boilerplate and limits the flexibility of the API and algorithms. To solve that, a type class based approach seems to be a reasonable idea.

adrobisch commented 4 years ago

The types are refactored now and its much simpler now, closing.