Scénario de test & Cas d'usage
Génération procédurale d'un grand réseau maillé aléatoire.
| 1 | |
| 2 | DATA mycas.grand_reseau; |
| 3 | call streaminit(123); |
| 4 | DO i=1 to 10000; |
| 5 | from = 'Srv_' || strip(put(rand('integer', 1, 1000), best.)); |
| 6 | to = 'Srv_' || strip(put(rand('integer', 1, 1000), best.)); |
| 7 | IF from ne to THEN OUTPUT; |
| 8 | END; |
| 9 | |
| 10 | RUN; |
| 11 |
| 1 | |
| 2 | PROC CAS; |
| 3 | SIMPLE.numRows / TABLE={name='grand_reseau'}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | network.centrality / links={name='grand_reseau'} direction='UNDIRECTED' between='UNWEIGHT' samplePercent=10.0 outNodes={name='points_critiques', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
L'action doit s'exécuter rapidement (grâce à l'échantillonnage de 10%) et fournir une table 'points_critiques' identifiant les serveurs 'ponts' (haute intermédiarité) sans erreur de mémoire, malgré la taille du graphe.