spaghetti 1.3.1
  • Installation
  • API
  • References
  • Site

      Contents:

      • Installation
        • Installing with conda via spaghetti-feedstock (highly recommended)
        • Installing with Python Package Index
        • Development Version
      • API
        • spaghetti.Network
        • spaghetti.PointPattern
        • spaghetti.SimulatedPointPattern
        • spaghetti
      • References
  • Page
      • spaghetti.Network.enum_links_vertex

spaghetti.Network.enum_links_vertex¶

Network.enum_links_vertex(self, v0)[source]¶

Returns the arcs (links) around vertices.

Parameters
v0int

vertex id

Returns
linkslist

List of tuple arcs adjacent to the vertex.

Examples

>>> import spaghetti as spgh
>>> ntw = spgh.Network(examples.get_path('streets.shp'))
>>> ntw.enum_links_vertex(24)
[(24, 48), (24, 25), (24, 26)]

Back to top

Source

© Copyright 2018, pysal developers.
Created using Sphinx 2.2.0.