jgraph, some additions, calculates functional