I need a simple Scala application to print out DAG to the console in ascii format.
Suppose I have a DAG which is represented by
case class Node(name: String, predecessors: Set[Node], successors: Set[Node])
case class Topology(nodes: Set[Node])
I'd like to be able to print out to the console an ascii graph similar to a one produced by
`git log --graph --abbrev-commit --decorate --format=format:'%C(blue)%h%C(reset)' `
| * 5a10168
| * ca4a34c
* | 19ae7d2
* | 82e7834
| * db5217d
* | 3f92c53
| * \ 19ab67c
| |\ \
| |/ /
| * | 3ab8ae9
| * | aa88cfd
| * | 54e6daa
Additionally, I'd like to be able to colour DAG branches (again similar to a git log command provided above).
It doesn't need to be interactive as git log (where you can scroll up / down or search).
Bu iş için 2 freelancer ortalamada £287 teklif veriyor
Dear Customer, My name is Yuriy Tumakha. I am interested in your project. I am Senior Scala/Java Developer with 14 years of experience. You can see my code examples on GitHub [login to view URL]