Move duplicate code in InputGraphs to the parent class.

llvm-svn: 192170
5 files changed