How do I change the breed of links?
<p>Here I want to change the breed of certain links too inactive, I am trying to use the following code which shows the below described error. Can anyone of you help me with the code please</p>

<pre><code>directed-link-breed [active-links active-link] 

directed-link-breed [inactive-links inactive-link]

to link-network

 ask nodes
  [

   create-active-links-to other nodes
    [

      let num-links count links

      let link-freq round (num-links * link-chance / 100)

      ask n-of link-freq links
        [
          set breed inactive-links
          hide-link
        ]
    ]
  ]

 layout

end

to layout

 repeat 10 [layout-spring nodes links  0.2 5 0.1 ]

 display

end
</code></pre>

<blockquote>
  <p>Error: There is already a INACTIVE-LINK with endpoints node 75 and
  node 28 error while inactive-link 75 28 running SET    called by
  procedure LINK-NETWORK</p>
  
  <p>called by procedure SETUP-NODES</p>
  
  <p>called by procedure SETUP</p>
  
  <p>called by Button 'setup'</p>
</blockquote>