Simplify code for --disable-setaffinity.
Add support for dumping node graph to file in Dot format.