Build directed graphs and export them to different formats.