Interactive tool for creating directed graphs