muspan.networks#
The muspan.networks module provides tools for working with networks in the MuSpAn package. This module includes the following submodules:
Network generation and manipulation
Generate a spatial network using the domain objects. |
|
Adds edge weight to all connected nodes that is valued as a similarity of node features. |
|
Adds edge weight to all connected nodes that is valued as a dissimilarity of node features. |
Neighbourhood analysis methods
Neighbourhood clustering of objects in a MuSpAn domain. |
|
For a given network, find the k-hop neighbourhood of a set of source objects. |
|
Counts the number of each label within proximity of a source object using KNN networks. |
Network-based point pattern analysis
Test the correlation between adjacency labels in a network, also referred to as neighbourhood enrichment. |
Network metrics
A measure of connectivity which evaluates the number of cycles in a graph in comparison with the maximum number of cycles. |
|
Calculate centrality measures for a given network within a domain and optionally add the results as labels to objects. |
|
Computes the compactness of a spatial network. |
|
Calculate the cyclomatic number of a network. |
|
Computes the symmetric distribution of edge orientations for a network. |
|
A measure of connectivity that considers the relationship between the number of observed links and the number of possible links A value close to 0 indicates poor connectivity, with relatively few connections. |
|
Computes the degree for each node. |
Network clustering
Community detection on a provided network. |
Network comparison methods
Calculate the distance between two networks providing a quantitative measure of the similarity between them. |