Skip to content
/ nglpy Public

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

License

Notifications You must be signed in to change notification settings

maljovec/nglpy

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages