graph.mapNodes((node) => ({
node,
degree: graph.degreeWithoutSelfLoops(node),
inDegree: graph.inDegreeWithoutSelfLoops(node),
outDegree: graph.outDegreeWithoutSelfLoops(node),
inNeighbors: graph.inboundNeighbors(node),
outNeighbors: graph.outboundNeighbors(node)
}))