Practical Algorithms for Orientations of Partially Directed Graphical Models