Structuralist analysis for neural network system diagrams