Overview
This is another GraphViz post for Pharo Smalltalk. A few days ago I committed a working version of GraphBuilder. It was mostly coded by Lukas Renggli and I updated the package to work with the current Pharo images and added minor features (like displaying commit date in the nodes).Installation and Usage
To install the package, open the Catalog Browser, select and install GraphViz, or evaluate the following expression:1 2 3 4 5 | Gofer new smalltalkhubUser: 'hernan' project: 'GraphViz' ; package: 'ConfigurationOfGraphViz' ; load. ((Smalltalk at: #ConfigurationOfGraphViz ) project version: #stable ) load: #( 'Tools' ). |
1 | GBAncestryBuilder select. |
On completion, two files are generated in the dot subdirectory on the working directory, one for the textual DOT language and the other one in PNG format.
Examples
Follows some outputs from analyzing several repositories:History of OrderPreservingDictionary, a special class of Dictionary where order is preserved: Visual history of Connectors, a Morphic package to make connected drawings (you may want to check Roassal for a more updated visualization engine):
And finally, a graph of CommandShell, an Unix command shell simulator for Squeak and Pharo Smalltalk:
0 comentarios:
Publicar un comentario