CloneSet125


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.997stmt_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11543
Bio/Pathway/Rep/Graph.py
21540
Bio/Pathway/Rep/MultiGraph.py
Clone Instance
1
Line Count
15
Source Line
43
Source File
Bio/Pathway/Rep/Graph.py

    def __str__(self): 
         "Returns a concise string description of this graph." 
         nodenum = len(self.__adjacency_list.keys( )) 
         edgenum = reduce( lambda x,y:x+y,map(len,self.__adjacency_list.values( ))) 

         labelnum = len(self.__label_map.keys( )) 
         return "<Graph: "+str(nodenum)+" node(s), "+str(edgenum)+" edge(s), "+str(labelnum)+" unique label(s)>" 




    def add_node(self,node): 
        "Adds a node to this graph." 
        if node not in self.__adjacency_list: 
             self.__adjacency_list[node] = HashSet( ) 
        


Clone Instance
2
Line Count
15
Source Line
40
Source File
Bio/Pathway/Rep/MultiGraph.py

    def __str__(self): 
         "Returns a concise string description of this graph." 
         nodenum = len(self.__adjacency_list.keys( )) 
         edgenum = reduce( lambda x,y:x+y,map(len,self.__adjacency_list.values( ))) 

         labelnum = len(self.__label_map.keys( )) 
         return "<MultiGraph: "+str(nodenum)+" node(s), "+str(edgenum)+" edge(s), "+str(labelnum)+" unique label(s)>" 




    def add_node(self,node): 
        "Adds a node to this graph." 
        if node not in self.__adjacency_list: 
             self.__adjacency_list[node] = HashSet( ) 
        


Clone AbstractionParameter Count: 1Parameter Bindings

def __str__(self):
  "Returns a concise string description of this graph." 
  nodenum = len(self.__adjacency_list.keys( )) 
  edgenum = reduce( lambda x,y:x+y,map(len,self.__adjacency_list.values( ))) 
  labelnum = len(self.__label_map.keys( )) 
  return [[#variable1778df40]]+str(nodenum)+" node(s), "+str(edgenum)+" edge(s), "+str(labelnum)+" unique label(s)>" 

def add_node(self,node):
  "Adds a node to this graph." 
  if node not in self.__adjacency_list:
  
    self.__adjacency_list[node] = HashSet( ) 
  
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1778df40]]
"<MultiGraph: " 
12[[#1778df40]]
"<Graph: "