Addiction is a multifactorial biological and behavioral disorder that is studied using animal models, based on simple behavioral responses in isolated individuals. A couple of decades ago it was shown that Drosophila melanogaster can serve as a model organism for behaviors related to alcohol, nicotine and cocaine (COC) addiction. Scoring of COC-induced behaviors in a large group of flies has been technologically challenging, so we have applied a local, middle and global level of network-based analyses to study social interaction networks (SINs) among a group of 30 untreated males compared to those that have been orally administered with 0.50 mg/mL of COC for 24 hours. In this study, we have confirmed the previously described increase in locomotion upon COC feeding. We have isolated new network-based measures associated with COC, and influenced by group on the individual behavior. COC fed flies showed a longer duration of interactions on the local level, and formed larger, more densely populated and compact, communities at the middle level. Untreated flies have a higher number of interactions with other flies in a group at the local level, and at the middle level, these interactions led to the formation of separated communities. Although the network density at the global level is higher in COC fed flies, at the middle level the modularity is higher in untreated flies. One COC specific behavior that we have isolated was an increase in the proportion of individuals that do not interact with the rest of the group, considered as the individual difference in COC induced behavior and/or consequence of group influence on individual behavior. Our approach can be expanded on different classes of drugs with the same acute response as COC to determine drug specific network-based measures and could serve as a tool to determinate genetic and environmental factors that influence both drug addiction and social interaction.