A recently proposed nonlinear extension of Granger causality is used to map the dynamics of a neural population onto a graph, whose community structure characterizes the collective behavior of the system. Both the number of communities and the modularity depend on transmission delays and on the learning capacity of the system.