Allow build_graph to supply all factor functions in a single list to overcome Python limit of 255.
Added factor_graph export method which dumps graph in GraphViz dot language for visualization.
Added shapes and colors to default factor graph export.