Compute the Relative Neighborhood Graph from a NumPy distance matrix input.
https://pypi.org/project/relativeNeighborhoodGraph/
- Install:
pip install relativeNeighborhoodGraph
- Compute the Relative Neighborhood Graph from a NumPy distance matrix input.
from relativeNeighborhoodGraph import returnRNG
RNG = returnRNG.returnRNG(distance_matrix)
- The resulting Relative Neighborhood Graph is returned as a Pandas DataFrame which may be used for visualisation. For example: