Basic Examples (2)
Compute entropy for a nearest neighbor graph of 20 random points:
Build the nearest neighbor graph of a perfect square lattice with unit lattice constant:
Compute the graph entropy and verify it is equal to zero as expected by symmetry:
Scope (3)
Define a 2D set of point arranged in a square lattice, add distortions to have all edges unequal as in a 2D disordered system and build the corresponding NearestNeighborGraph with all nearest neighbor connections within a given radius:
Compute the graph entropy:
Check it is equal to the natural logarithm of the number of distinct edges in the graph:
Options (2)
Treat some distance values as equal if they differ by an optional threshold "MinThreshold" set to a given positive value. This introduces some order into the graph layout:
Check that graph entropy is lower than in the case without rounding factor:
Applications (2)
Build a linear graph mapped to the coordinates of a one-dimensional Fibonacci quasiperiodic chain with nit iterations and spacing ratio between nodes tau:
Computes its graph entropy:
Check that the numerical value of the graph entropy converges to the universal value 0.665:
This universal value 0.665 is also independent of the spacing ratio between graph nodes:
If a point symmetry element of order Cn is present in the graph, then the graph entropy is equal to ln(E/n) where E is the total number of edges in the graph and n is the order of the rotation symmetry.
Start from a slightly disordered square lattice and apply rotations of 0, π/2, π and -π/2 to the starting lattice points to get three additional sub-lattices:
Build the overall graph connecting all points belonging to the four sub-lattices:
Compute numerically the graph entropy for this system:
Check that it is close to the natural logarithm of the number of graph edges divided by the symmetry order:
Properties and Relations (2)
Define a grid of points:
As noise is added to the graph, the entropy increases:
Neat Examples (2)
Build a 2D graph mapped to the coordinates of a two-dimensional Fibonacci quasiperiodic array with nit iterations:
Check that the numerical value of the graph entropy still converges to the universal value 0.665 known from 1D case (computation takes a few seconds):
A semi-regular set of points obtained by alternatively deleting sites from a square lattice:
Check that the graph entropy is still zero as expected by symmetry: