Tensor Analysis Of Networks