Implement random generators for `OpenGraph` with flows. In particular, this will make it possible to implement the round-trip test from `OpenGraph` to `Pattern` and back that was suggested in #196.