Inferring network connectivity from event timing patterns