working with autostepping, but sometimes segfaults on small graphs...