toolbox for Forney-style Factor Graphs