Scénario de test & Cas d'usage
Simulating a larger network of network towers with weighted latency connections.
| 1 | |
| 2 | DATA mycas.network_links; |
| 3 | DO i=1 to 1000; |
| 4 | from_node = 'Tower' || strip(put(round(rand('uniform')*100), 8.)); |
| 5 | to_node = 'Tower' || strip(put(round(rand('uniform')*100), 8.)); |
| 6 | latency = rand('uniform'); |
| 7 | OUTPUT; |
| 8 | END; |
| 9 | |
| 10 | RUN; |
| 11 |
| 1 | PROC CAS; |
| 2 | network.centrality / |
| 3 | links={name='network_links'} |
| 4 | between='WEIGHT' |
| 5 | samplePercent=15.0 |
| 6 | eigen='WEIGHT' |
| 7 | eigenAlgorithm='POWER' |
| 8 | eigenMaxIters=50 |
| 9 | nThreads=8 |
| 10 | outNodes={name='infra_criticality', replace=true}; |
| 11 | RUN; |
The action completes successfully using multithreading. 'cent_between_wt' is calculated using a 15% sample of source nodes (faster execution), and Eigenvector centrality is computed using the Power method. The output table lists towers ranked by their structural importance.