Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio.Nexus.Nodes.Chain.unlink (   self,
  id 
) [inherited]
Disconnects node from his predecessor: unlink(self,id).

Definition at line 74 of file Nodes.py.

References Bio.Nexus.Nodes.Chain.chain.

Referenced by Bio.Nexus.Nodes.Chain.link(), and Bio.Nexus.Trees.Tree.prune().

00074 
    def unlink(self,id):
        """Disconnects node from his predecessor: unlink(self,id)."""
        if id not in self.chain:
            raise ChainException('Unknown ID: '+str(id))
        else:
            prev_id=self.chain[id].prev
            if prev_id is not None:
                self.chain[prev_id].succ.pop(self.chain[prev_id].succ.index(id))
            self.chain[id].prev=None
            return prev_id

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index