A method for the analysis of the structure of complex organizations