wip: support cyclical payment graphs