b5667e5ee98f9f68c8f40dd9691bb9006a5ac832,graphs/graph_list.py,,,#,21

Before Change


g.add_edge(4,5)


g.show()

After Change


        for i  in self.List:
            print((i,"->"," -> ".join([str(j) for j in self.List[i]])))

if __name__ == "__main__":
    al = AdjacencyList()
    al.addEdge(0, 1)
    al.addEdge(0, 4)
    al.addEdge(4, 1)
    al.addEdge(4, 3)
    al.addEdge(1, 0)
    al.addEdge(1, 4)
    al.addEdge(1, 3)
    al.addEdge(1, 2)
    al.addEdge(2, 3)
    al.addEdge(3, 4)

    al.printList()

    // OUTPUT:
    // 0 -> 1 -> 4
    // 1 -> 0 -> 4 -> 3 -> 2
    // 2 -> 3
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: TheAlgorithms/Python
Commit Name: b5667e5ee98f9f68c8f40dd9691bb9006a5ac832
Time: 2019-05-20
Author: anirudh.ajith@gmail.com
File Name: graphs/graph_list.py
Class Name:
Method Name:


Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/objectClassification/objectClassificationGui.py
Class Name: ObjectClassificationGui
Method Name: setupLayers


Project Name: ilastik/ilastik
Commit Name: db00d263dd7b3079d9fe42af721828cce7fc0f24
Time: 2018-12-20
Author: hiltpa@gmail.com
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: setupLayers