.expand_targets: Helper to expand the right-hand side of an edge specification
Description
This function expands the right-hand side of an edge
specification into a character vector of target node names. It handles
various forms of input, including symbols, calls with +, calls with c(),
and character literals.