commented out DirectedGraph tests because were failing
Rolled back to our own previous version with fixed factor product
[fixes #198][fixes #199] changed the flattening order of cpd to row-major