added features to convert a pathway diagram into a factor graph; created
a factor graph specific visual style