f20172b9a76430696ab061695fd9d92ffad4fd85,lingpy/convert/gml.py,,nwk2gml,#,111

Before Change



    // write graph to file
    nx.write_gml(graph,filename+".gml")
    print("[i] Data has been written to file <{0}.gml>.".format(filename))

    return 

After Change


        if parent:
            graph.add_edge(parent.Name,node)
    
    f = open(filename+".gml","w")
    for line in nx.generate_gml(graph):
        f.write(line+"\n")
    f.close()

    FileWriteMessage(filename,"gml").message("written")

    return 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: lingpy/lingpy
Commit Name: f20172b9a76430696ab061695fd9d92ffad4fd85
Time: 2013-01-25
Author: mattis.list@posteo.de
File Name: lingpy/convert/gml.py
Class Name:
Method Name: nwk2gml


Project Name: commonsense/conceptnet5
Commit Name: 804372af52b6a343e3b2c7ae6a838fe5f02f546a
Time: 2016-06-23
Author: rob@luminoso.com
File Name: conceptnet5/readers/wordnet.py
Class Name:
Method Name: run_wordnet


Project Name: lingpy/lingpy
Commit Name: f20172b9a76430696ab061695fd9d92ffad4fd85
Time: 2013-01-25
Author: mattis.list@posteo.de
File Name: lingpy/convert/gml.py
Class Name:
Method Name: gls2gml