created temporary method-generator for oriented graph