CloneSet67


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19210.985stmt_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119116
Bio/Pathway/Rep/Graph.py
219111
Bio/Pathway/Rep/MultiGraph.py
Clone Instance
1
Line Count
19
Source Line
116
Source File
Bio/Pathway/Rep/Graph.py

        "Removes node and all edges connected to it." 
        if node not in self.__adjacency_list: 
             raise ValueError("Unknown node: "+str(node)) 
         # remove node (and all out-edges) from adjacency list
        del self.__adjacency_list[node] 
        # remove all in-edges from adjacency list
        for n in self.__adjacency_list.keys( ):
                                              
            self.__adjacency_list[n] = HashSet(filter( lambda x,node = node:x is not node,self.__adjacency_list[n].list( ))) 

        # remove all refering pairs in label map
        for label in self.__label_map.keys( ):
                                             
            lm = HashSet(filter( lambda x,node = node:(x[0] is not node) and (x[1] is not node),self.__label_map[label].list( ))) 


            # remove the entry completely if the label is now unused
            if lm.empty( ):
                          
                del self.__label_map[label] 
            else: 
                 self.__label_map[label] = lm 
         # remove all refering entries in edge map
            


Clone Instance
2
Line Count
19
Source Line
111
Source File
Bio/Pathway/Rep/MultiGraph.py

        "Removes node and all edges connected to it." 
        if node not in self.__adjacency_list: 
             raise ValueError("Unknown node: "+str(node)) 
         # remove node (and all out-edges) from adjacency list
        del self.__adjacency_list[node] 
        # remove all in-edges from adjacency list
        for n in self.__adjacency_list.keys( ):
                                              
            self.__adjacency_list[n] = HashSet(filter( lambda x,node = node:x[0] is not node,self.__adjacency_list[n].list( ))) 

        # remove all refering pairs in label map
        for label in self.__label_map.keys( ):
                                             
            lm = HashSet(filter( lambda x,node = node:(x[0] is not node) and (x[1] is not node),self.__label_map[label].list( ))) 


            # remove the entry completely if the label is now unused
            if lm.empty( ):
                          
                del self.__label_map[label] 
            else: 
                 self.__label_map[label] = lm 
            


Clone AbstractionParameter Count: 1Parameter Bindings

"Removes node and all edges connected to it." 
if node not in self.__adjacency_list:
  raise ValueError("Unknown node: "+str(node)) 
  # remove node (and all out-edges) from adjacency list
del self.__adjacency_list[node] 
# remove all in-edges from adjacency list
for n in self.__adjacency_list.keys( ):
  self.__adjacency_list[n] = HashSet(filter( lambda x,node = node: [[#variable6aef8200]]is not node,self.__adjacency_list[n].list( ))) 
  # remove all refering pairs in label map
for label in self.__label_map.keys( ):
  lm = HashSet(filter( lambda x,node = node:(x[0] is not node) and (x[1] is not node),self.__label_map[label].list( ))) 
  # remove the entry completely if the label is now unused
  if lm.empty( ):
  
    del self.__label_map[label] 
  else:
  
    self.__label_map[label] = lm 
    # remove all refering entries in edge map
  
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6aef8200]]
x 
12[[#6aef8200]]
x[0]