Draw connecting lines between commands and nodes