spacenet.utils#

Creating and modifying spatial networks#

spatial_network_from_points

Generates a spatial network using set of node coordinates.

spatial_network_from_edgelist

Generates a spatial network from a given edgelist and node coordinates.

spatial_network_from_adjacency

Generates a spatial network from a given adjacency matrix and node coordinates.

add_node_labels

A function to add labels to nodes in a spatial network.

delete_node_labels

A function to delete node labels from a spatial network.

Querying spatial networks#

query_nodes

Query nodes in a spatial network based on a specified node attribute, relation, and value.

Viewing data#

plot_spatial_network

Plots a spatial network with nodes positioned according to the provided points.

print_network_properties

A function to print the properties of a spatial network, including the number of nodes, edges, names of edge weights, node labels names .

Exporting data#

nodes_to_dataframe

Converts the nodes of a spatial network into a pandas DataFrame.