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

def Bio::Pathway::Rep::MultiGraph::MultiGraph::parent_edges (   self,
Returns a list of (parent, label) pairs for child.

Definition at line 91 of file MultiGraph.py.

        """Returns a list of (parent, label) pairs for child."""
        if child not in self.__adjacency_list:
            raise ValueError("Unknown <child> node: " + str(child))
        parents = []
        for parent in self.__adjacency_list:
            children = self.__adjacency_list[parent]
            for x in children.list():
                if x[0] is child:
                    parents.append((parent, x[1]))
        return parents

Generated by  Doxygen 1.6.0   Back to index