pysal.explore.spaghetti.Network.segment_edges

Network.segment_edges(distance)[source]
Segment all of the edges in the network at either a
fixed distance or a fixed number of segments.
Parameters:
distance : float

The distance at which edges are split.

Returns:
sn : spaghetti.Network

spaghetti Network object.

Examples

>>> import pysal.explore.spaghetti as spgh
>>> ntw = spgh.Network(examples.get_path('streets.shp'))
>>> n200 = ntw.segment_edges(200.0)
>>> len(n200.edges)
688