A python implementation of motif analysis (triadic patterns) and David's hierarchy score, in a dominance interactions network.