BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
LauraMunozCalvo
Calcite | Level 5

I would like to know how proc optgraph acts when you give it a graph with weights. I am doing community detection using Louvain method and community option. I have several pairs of nodes with more tan one link and different weigths. I would want to know if the algorithm adds the weights or what it does with them.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
RobPratt
SAS Super FREQ

If you have multiple links between the the same pair of nodes, only the first one is used:

https://go.documentation.sas.com/?docsetId=procgralg&docsetTarget=procgralg_optgraph_details01.htm&d...

 

The log displays a warning in that case:

WARNING: Link (A,B) in observation 2 of the DATA_LINKS= data set is a duplicate and is ignored.

 

In the next release of PROC NETWORK (the SAS Viya counterpart to PROC OPTGRAPH), multiple links are handled directly in the algorithm.

View solution in original post

1 REPLY 1
RobPratt
SAS Super FREQ

If you have multiple links between the the same pair of nodes, only the first one is used:

https://go.documentation.sas.com/?docsetId=procgralg&docsetTarget=procgralg_optgraph_details01.htm&d...

 

The log displays a warning in that case:

WARNING: Link (A,B) in observation 2 of the DATA_LINKS= data set is a duplicate and is ignored.

 

In the next release of PROC NETWORK (the SAS Viya counterpart to PROC OPTGRAPH), multiple links are handled directly in the algorithm.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 1 reply
  • 1230 views
  • 0 likes
  • 2 in conversation