Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/n/i/nipy-0.3.0/nipy/algorithms/graph/field.py   nipy(Download)
        sum(valid) == 0 then None is returned
        """
        G = self.subgraph(valid)
        if G == None:
            return None

src/n/i/nipy-0.3.0/nipy/algorithms/graph/tests/test_graph.py   nipy(Download)
    def test_subgraph_1(self,n=10,verbose=0):
        x = nr.randn(n, 2) 
        G = WeightedGraph(x.shape[0])
        valid = np.zeros(n)
        g = G.subgraph(valid)