working kamisado graph iterator