Ignore:
Timestamp:
04/26/12 09:53:01 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Fixes #1183.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/network/network.py

    r10469 r10852  
    190190        return [x for x in vars if str(x.name) != 'u' and str(x.name) != 'v'] 
    191191 
    192 class Graph(BaseGraph, nx.Graph): 
    193     """Bases: `NetworkX.Graph <http://networkx.lanl.gov/reference/classes.graph.html>`_,  
    194     :obj:`Orange.network.BaseGraph`  
    195      
    196     """ 
    197  
    198     def __init__(self, data=None, name='', **attr): 
    199         nx.Graph.__init__(self, data, name=name, **attr) 
    200         BaseGraph.__init__(self) 
    201  
    202192    def subgraph(self, nbunch): 
    203193        G = nx.Graph.subgraph(self, nbunch) 
     
    206196        G.set_items(items) 
    207197        return G 
     198 
     199class Graph(BaseGraph, nx.Graph): 
     200    """Bases: `NetworkX.Graph <http://networkx.lanl.gov/reference/classes.graph.html>`_,  
     201    :obj:`Orange.network.BaseGraph`  
     202     
     203    """ 
     204 
     205    def __init__(self, data=None, name='', **attr): 
     206        nx.Graph.__init__(self, data, name=name, **attr) 
     207        BaseGraph.__init__(self) 
    208208        # TODO: _links 
    209209 
Note: See TracChangeset for help on using the changeset viewer.