Gamma Graph

Gamma Graph#

Se muestran diferentes ejemplos de los gamma vecindarios para diferentes \(n\) puntos, \(\gamma_0\), \(\gamma_1\).

import proximitygraphs as pg
import time
vcolor = '#051650'
ecolor = '#0A2472'

uniform_sphere = pg.SetPoints.uniform_sphere(seed=0, n=1000)
uniform_sphere.draw(figsize=(6,6))
(<Figure size 600x600 with 1 Axes>, <Axes: title={'center': 'SetPoints'}>)
../_images/ab0e6f72087cc53a60670ee423d88e38807525862824dbc970ed500f27ea306f.png
start = time.time()
H = pg.Gamma_Graph(uniform_sphere, gamma0=-0.2, gamma1=-0.2)
H.draw(title=True, details=True, figsize=(6,6), v_size=3, e_size=1, v_color=vcolor, e_color=ecolor, fontsize=10)
end = time.time()
print("Time taken: ", end - start)
Time taken:  29.84161901473999
../_images/6e7b33556a338e94ef99cb5dc78fcfd83a9e26bdb136f06201728001e683fa05.png
start = time.time()
H = pg.Gamma_Graph(uniform_sphere, gamma0=0.2, gamma1=0.2)
H.draw(title=True, details=True, figsize=(6,6), v_size=3, e_size=1, v_color=vcolor, e_color=ecolor, fontsize=10)
end = time.time()
print("Time taken: ", end - start)
Time taken:  0.025593996047973633
../_images/e9826fbcec509f642a8b1fc531dd6f834e19cf737bdd0fb40fdee1589ec23f12.png