added support for branch factor restrictions to out, outE, in, inE, both, and bothE -- Fixed #324