Changeset 8134:be71b5e9374b in orange


Ignore:
Timestamp:
08/02/11 11:57:11 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
65943612ff0c8ec3549161df56a3cdf6ff20fdd6
Message:
 
File:
1 edited

Legend:

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

    r8084 r8134  
    202202    def subgraph(self, nbunch): 
    203203        G = nx.Graph.subgraph(self, nbunch) 
    204         nodes = set(nbunch).intersection(self.nodes()) 
    205          
     204        items = self.items().get_items(G.nodes()) 
     205        G = G.to_orange_network() 
     206        G.set_items(items) 
    206207        return G 
    207         # TODO: _items, _links 
     208        # TODO: _links 
    208209     
    209210    __doc__ += _get_doc(nx.Graph.__doc__) 
Note: See TracChangeset for help on using the changeset viewer.