/relativeNeighborhoodGraph

A python package for computing the Relative Neighborhood Graph from a given distance matrix.

Primary LanguagePythonMIT LicenseMIT

Relative Neighborhood Graph

Compute the Relative Neighborhood Graph from a NumPy distance matrix input.

https://pypi.org/project/relativeNeighborhoodGraph/

Instructions

  1. Install:
pip install relativeNeighborhoodGraph
  1. Compute the Relative Neighborhood Graph from a NumPy distance matrix input.
from relativeNeighborhoodGraph import returnRNG

RNG = returnRNG.returnRNG(distance_matrix)
  1. The resulting Relative Neighborhood Graph is returned as a Pandas DataFrame which may be used for visualisation. For example:

Example Graph