=str #16221 fix graph precondition checks when attaching Source/Sink
Merge pull request #16225 from 2m/wip-16221-graph-source-sink-preconditions

=str #16221 fix graph precondition checks when attaching Source/Sink