Functional Programming and Parallel Graph Rewriting