Foundations of Multidimensional Network Analysis