Issue #64: bugfix in scheduler for loopy graphs; needs further testing on larger graphs