Add self-referenced nodes edge rendering.

Added edges rendering for self-referenced node.