From: Efficient modeling of higher-order dependencies in networks: from algorithm to application for anomaly detection