landlab.graph.object.ext package#

Submodules#

landlab.graph.object.ext.at_node module#

Find links touching a node and their directions.

Parameters:
  • node (int) – A node ID.

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

  • links_at_node (ndarray of int, shape (max_links_per_node, )) – Buffer to hold link identifiers for links around node.

  • link_dirs_at_node (ndarray of int, shape (max_links_per_node, )) – Buffer to hold link directions for links around node.

Returns:

The number of links found.

Return type:

int

Get links touching each node and their directions.

Parameters:
  • nodes_at_link (ndarray of int, shape (n_links, 2)) – Node identifiers for each link tail and head.

  • links_at_node (ndarray of int, shape (n_nodes, max_nodes_per_link)) – Buffer to hold link identifiers for each node.

  • link_dirs_at_node (ndarray of int, shape (n_nodes, max_nodes_per_link)) – Buffer to hold link directions for each node.

landlab.graph.object.ext.at_patch module#

get_nodes_at_patch(ndarray links_at_patch, ndarray nodes_at_link, ndarray nodes_at_patch)#
get_rightmost_edge_at_patch(ndarray links_at_patch, ndarray xy_of_link, ndarray edge)#

Module contents#