Avoid self-loops in transaction graphs.