stacked-dag: Ascii DAG(Directed acyclic graph) for visualization of dataflow

[ bsd3, graphics, graphs, library, program ] [ Propose Tags ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.1.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), containers, graphviz, optparse-applicative, stacked-dag, text [details]
License BSD-3-Clause
Copyright 2018 Junji Hashimoto
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Graphs, Graphics
Home page https://github.com/junjihashimoto/stacked-dag#readme
Bug tracker https://github.com/junjihashimoto/stacked-dag/issues
Source repo head: git clone https://github.com/junjihashimoto/stacked-dag
Uploaded by junjihashimoto at 2018-09-28T05:57:26Z
Distributions NixOS:0.1.1.0
Executables stacked-dag
Downloads 2782 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-09-28 [all 1 reports]

Readme for stacked-dag-0.1.0.0

[back to package description]

stacked-dag

Hackage version Build Status

Ascii DAG for visualization of dataflow

stacked-dag can show Ascii-DAG(Directed acyclic graph) from a Dot file of graphviz. Dataflow's direction is from top to bottom. 'o' means a node. A label of the node is shown to the left side. Other characters are edges of DAG.

A sample of DAG is below.

o o    l0,l4
|/
o    l1
|
o    l2
|
o    l3

Usages

Write a Dot file of graphviz.

$ cat > sample.dot
digraph graphname {
  0 [label="l0"];
  1 [label="l1"];
  2 [label="l2"];
  3 [label="l3"];
  4 [label="l4"];
  0->1;
  1->2;
  2->3;
  4->1;
}

Show ascii DAG by following command.

$ stacked-dag dot sample.dot
o o    l0,l4
|/
o    l1
|
o    l2
|
o    l3

Samples

$ stacked-dag samples
o o    l0,l1
|/
o o o    l2,l4,l6
|/_/
o    l3
|
o    l5
---
o o    l0,l1
 x
o o    l2,l3
---
o    l0
|\
o o    l1,l2
---
o
|\
o |
|/
o
---
o
|\
o |
| |
o |
|/
o