temcavanagh / relativeNeighborhoodGraph

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

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

License:MIT License


Languages

Language:Python 100.0%