Oriented graph generation.