Maximum links to a port

Hi,

How can i set maximum number of link to a TO Port and From Port.
Can you give some suggestions please.

Please ignore this message. I have done it my self

LimitedNode in NodeLinkDemo implements a MaxLinks property.