Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/nipy/algorithms/graph/field.py   nipy(Download)
                                  self.field[self.edges.T[1]]) ** 2, 1))
        g = WeightedGraph(self.V, self.edges, weights)
        label = g.voronoi_labelling(seed)
        return label
 

src/n/i/nipy-0.3.0/nipy/algorithms/graph/tests/test_graph.py   nipy(Download)
        G.symmeterize()
        seed = np.array([0, 6])
        label = G.voronoi_labelling(seed)
        assert(label[1] == 0)
 
        G.symmeterize()
        seed = np.array([0])
        label = G.voronoi_labelling(seed)
        assert(label[4] == 0)
 
        G.symmeterize()
        seed = np.array([0])
        label = G.voronoi_labelling(seed)
        assert(label[4] == - 1)