diff --git a/pysal/network/wed_modular.py b/pysal/network/wed_modular.py index e1e7c7741..67bc67850 100644 --- a/pysal/network/wed_modular.py +++ b/pysal/network/wed_modular.py @@ -297,7 +297,7 @@ def regions_from_graph(nodes, edges, remove_holes = False): >>> edges = [(1, 2),(1, 3),(2, 1),(2, 4),(2, 7),(3, 1),(3, 4),(4, 2),(4, 3),(4, 5),(5, 4),(5, 6),(6, 5),(7, 2),(7, 11),(8, 9),(8, 10),(9, 8),(9, 10),(10, 8),(10, 9),(11, 7),(11, 12),(11, 13),(12, 11),(12, 13),(12, 20),(13, 11),(13, 12),(13, 18),(14, 15),(15, 14),(15, 16),(16, 15),(18, 13),(18, 19),(19, 18),(19, 20),(19, 21),(20, 12),(20, 19),(20, 21),(20, 22),(20, 24),(21, 19),(21, 20),(22, 20),(22, 23),(23, 22),(23, 24),(24, 20),(24, 23),(25, 26),(25, 27),(26, 25),(26, 27),(27, 25),(27, 26)] >>> r = regions_from_graph(vertices, edges) >>> r['filaments'] - [[6, 5, 4], 0, [2, 7, 11], [14, 15, 16], 17] + [[6, 5, 4], [2, 7, 11], [14, 15, 16]] >>> r['regions'] [[3, 4, 2, 1, 3], [9, 10, 8, 9], [11, 12, 13, 11], [12, 20, 19, 18, 13, 12], [19, 20, 21, 19], [22, 23, 24, 20, 22], [26, 27, 25, 26]]