Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.997 | stmt_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 43 | Bio/Pathway/Rep/Graph.py |
2 | 15 | 40 | 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 "<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( ) |
| ||||
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( ) |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1778df40]] | "<MultiGraph: " |
1 | 2 | [[#1778df40]] | "<Graph: " |