Orient graph factory