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

Fixes #16038
perhaps use `graph.contains(node)`?