add new class FuncPair to represent edges in FuncGraph
minor change