Scénario de test & Cas d'usage
Analyse de réseaux et algorithmes de graphes.
Découvrir toutes les actions de optNetworkGénération procédurale d'un grand anneau de 1000 serveurs pour simuler une topologie en boucle massive.
| 1 | |
| 2 | DATA casuser.network_cables; |
| 3 | DO i=1 to 1000; |
| 4 | from='Srv'||strip(put(i,8.)); |
| 5 | IF i=1000 THEN to='Srv1'; |
| 6 | ELSE to='Srv'||strip(put(i+1,8.)); |
| 7 | OUTPUT; |
| 8 | END; |
| 9 | |
| 10 | RUN; |
| 11 |
| 1 | |
| 2 | PROC CAS; |
| 3 | SIMPLE.numRows / TABLE={name="network_cables"}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | optNetwork.cycle / direction="UNDIRECTED" links={name="network_cables"} algorithm="BUILD" minLength=999 maxCycles=1 outCyclesLinks={name="NetworkLoops", replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
L'action doit réussir à identifier la boucle massive de 1000 nœuds malgré la volumétrie, retournant les liens constitutifs dans la table 'NetworkLoops'. L'utilisation de 'algorithm=BUILD' est validée pour ce type de structure.