Update FactorGraph.h

add interface that also returns bound