#! /bin/bash
#
#  Render a PDF image of the graph using Force-Directed-Placement.
#
dot -Tpdf -Kfdp bill_layton_genealogy.dot -o bill_layton_genealogy.pdf
#
if [ $? -ne 0 ]; then
  echo "Error creating FDP PDF image."
  exit
fi
#
#  Render a PNG image of the graph using Force-Directed-Placement.
#
dot -Tpng -Kfdp bill_layton_genealogy.dot -o bill_layton_genealogy.png
#
if [ $? -ne 0 ]; then
  echo "Error creating FDP PDF image."
  exit
fi
#
echo "Normal end of execution."
