maljovec / nglpy

A Python wrapped version of the Neighborhood Graph Library (NGL) developed by Carlos Correa and Peter Lindstrom with additional parameters and graph types.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nglpy

Latest Version on PyPI PyPI downloads Code Quality Test Results Test Suite Results CodeFactor Coveralls ReadTheDocs Pyup This code is formatted in black This code has its imports sorted with isort BSD 3-Clause License

nglpy

A Python wrapped version of the [Neighborhood Graph Library (NGL) developed by Carlos Correa and Peter Lindstrom.

Given a set of arbitrarily arranged points in any dimension, this library is able to construct several different types of neighborhood graphs mainly focusing on empty region graph algorithms such as the beta skeleton family of graphs.

Installation

pip install nglpy

Usage

Then you can use the library from python such as the example below:

import nglpy
import numpy as np

point_set = np.random.rand(100,2)
max_neighbors = 9
beta = 1

aGraph = nglpy.EmptyRegionGraph(max_neighbors=max_neighbors, relaxed=False, beta=beta)
aGraph.build(point_set)

aGraph.neighbors()

About

A Python wrapped version of the Neighborhood Graph Library (NGL) developed by Carlos Correa and Peter Lindstrom with additional parameters and graph types.

License:Other


Languages

Language:C++ 76.7%Language:Python 22.2%Language:SWIG 0.4%Language:Dockerfile 0.3%Language:Makefile 0.2%Language:Shell 0.2%