add_link()

home > kero > Documentation

This function adds an un-directed  edge/link between two nodes/vertices.

kero.multib.nDnet.py 
class Network:
  def add_link(self,member1,member2):
    return

The intuitive illustration is as shown below. If our network has 3 members, 1, 2 and 3, then using add_link(“1″,”2”) and add_link(“2″,”3”) will create the connections between 1-and-2 and 2-and-3 respectively. In mathematical graph, this is simply adding edges to the specified vertices.

addlink.png

Argument/Return

member1 String. Name/identifier of the new member to be linked to member2.
member2 String. Name/identifier of the new member to be linked to member1.

Example usage

See here.

kero version: 0.5.1 and above