- Install Graphviz on your machine
- Create a script called
graph
with the following contents:
#!/bin/sh
dot -T pdf | open -a /Applications/Preview.app -f
Create a simple graph using Graphviz notation and place in graph.txt
:
digraph project {
a -> b -> c
}
Generate the graph and view with the PDF Viewer:
cat graph.txt | graph
And you will see the simple graph visually.