Approximating temporal modularity on graphs of small underlying treewidth | Synapse