Skip to content

Commit

Permalink
- update doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsrey committed Jun 6, 2013
1 parent 6fdd94d commit 44076b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysal/network/wed_modular.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit 44076b7

Please sign in to comment.