+str #16038 Create Source/Flow/Sink from partial flow graphs

Fixes #16038
Yup. Will use `graph.contains` in the code I copied as well.