Real-time anomalies detection and analysis of network structure, with application to the Autonomous System network