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/tests/test_graph.py   nipy(Download)
        d = np.ones(14)
        G = WeightedGraph(7, edges, d)
        G.symmeterize()
        d = G.weights
        ok = (d == 0.5)
        edges = np.transpose(np.vstack((a, b)))
        G = WeightedGraph(7, edges,d)
        G.symmeterize()
        seed = np.array([0, 6])
        label = G.voronoi_labelling(seed)
        edges = np.vstack((a, b)).T
        G = WeightedGraph(7, edges,d)
        G.symmeterize()
        seed = np.array([0])
        label = G.voronoi_labelling(seed)
        edges = np.vstack((a, b)).T
        G = WeightedGraph(7, edges,d)
        G.symmeterize()
        seed = np.array([0])
        label = G.voronoi_labelling(seed)