Changeset 8019:56e3286b7282 in orange


Ignore:
Timestamp:
06/14/11 14:32:39 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
20fc293de6a6a3cb5b30935c69347c4a69a5bb82
Message:

Renamed modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/network/readwrite.py

    r8018 r8019  
    2323import networkx as nx 
    2424import networkx.readwrite as rw 
     25import networkx.readwrite.pajek as rwpajek 
     26import networkx.readwrite.gml as rwgml 
     27import networkx.readwrite.gpickle as rwgpickle 
    2528 
    2629import Orange 
     
    155158    """ 
    156159     
    157     return _wrap(rw.gpickle.read_gpickle(path)) 
    158  
    159 _add_doc(read_gpickle, rw.gpickle.read_gpickle) 
     160    return _wrap(rwgpickle.read_gpickle(path)) 
     161 
     162_add_doc(read_gpickle, rwgpickle.read_gpickle) 
    160163 
    161164def write_gpickle(G, path): 
     
    164167    """ 
    165168     
    166     rw.gpickle.write_gpickle(G, path) 
    167  
    168 _add_doc(write_gpickle, rw.gpickle.write_gpickle) 
     169    rwgpickle.write_gpickle(G, path) 
     170 
     171_add_doc(write_gpickle, rwgpickle.write_gpickle) 
    169172 
    170173def read_pajek(path, encoding='UTF-8'): 
     
    227230        fh.write(line.encode(encoding)) 
    228231 
    229 _add_doc(write_pajek, rw.pajek.write_pajek) 
     232_add_doc(write_pajek, rwpajek.write_pajek) 
    230233 
    231234def parse_pajek(lines): 
     
    293296         
    294297 
    295 _add_doc(generate_pajek, rw.pajek.generate_pajek) 
     298#_add_doc(generate_pajek, rwpajek.generate_pajek) 
    296299         
    297300def read_gml(path, encoding='latin-1', relabel=False): 
     
    300303    """ 
    301304     
    302     return _wrap(rw.gml.read_gml(path, encoding, relabel)) 
    303  
    304 _add_doc(read_gml, rw.gml.read_gml) 
     305    return _wrap(rwgml.read_gml(path, encoding, relabel)) 
     306 
     307_add_doc(read_gml, rwgml.read_gml) 
    305308 
    306309def write_gml(G, path): 
     
    309312    """ 
    310313     
    311     rw.gml.write_gml(G, path) 
    312  
    313 _add_doc(write_gml, rw.gml.write_gml) 
     314    rwgml.write_gml(G, path) 
     315 
     316_add_doc(write_gml, rwgml.write_gml) 
Note: See TracChangeset for help on using the changeset viewer.