communities = {
let n = graph.nodes.map(n => ({id: n}))
let l = graph.links.map(l=>({
'source': graph.nodes.indexOf(l.source),
'target': graph.nodes.indexOf(l.target),
'count': l.count,
}))
let clusters = netClustering.cluster(n, l, undefined, 'count')
return ({n, l, clusters})
}