Changeset 7852:c33acde08336 in orange


Ignore:
Timestamp:
04/18/11 09:18:45 (3 years ago)
Author:
matija <matija.polajnar@…>
Branch:
default
Convert:
491aec74318f5106f7e556199e032bbf1c8008b2
Message:

Orange.network: transfer data and name into the wrapper to prevent data loss.

File:
1 edited

Legend:

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

    r7838 r7852  
    4747     
    4848    def __init__(self, data=None, name='', **attr):   
    49         nx.Graph.__init__(self, data=None, name='', **attr) 
     49        nx.Graph.__init__(self, data=data, name=name, **attr) 
    5050        BaseGraph.__init__(self) 
    5151         
     
    5555     
    5656    def __init__(self, data=None, name='', **attr): 
    57         nx.DiGraph.__init__(self, data=None, name='', **attr) 
     57        nx.DiGraph.__init__(self, data=data, name=name, **attr) 
    5858        BaseGraph.__init__(self) 
    5959         
     
    6363     
    6464    def __init__(self, data=None, name='', **attr): 
    65         nx.MultiGraph.__init__(self, data=None, name='', **attr) 
     65        nx.MultiGraph.__init__(self, data=data, name=name, **attr) 
    6666        BaseGraph.__init__(self) 
    6767         
     
    7171     
    7272    def __init__(self, data=None, name='', **attr): 
    73         nx.MultiDiGraph.__init__(self, data=None, name='', **attr) 
     73        nx.MultiDiGraph.__init__(self, data=data, name=name, **attr) 
    7474        BaseGraph.__init__(self) 
    7575         
Note: See TracChangeset for help on using the changeset viewer.