landlab.graph.matrix.at_patch

Construct as links_at_patch array for a graph.

Parameters:
  • patches (tuple of ndarray of int) – Links that define patches as (links, offset_to_patch).

  • sort (bool, optional) – Sort the links.

  • nodes_at_link (ndarray of int, shape (n_links, 2)) – Nodes at link tail and head.

  • xy_of_node (ndarray of float, shape (n_nodes, 2)) – Coordinates of nodes.

Examples