p2p cycle detection
p2p cycle detection