Finished FunctionGraphTransformer to transform simple Graphs to FactorGraphs with VariableVertex, FuncitonVertex, FunctionToVariable edge and VariableToFunction edge