# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

Generate the spatial and temporal coordinate information of a Lorentz-boosted causal graph

Contributed by:
Tom Lee, Jon Lederman

ResourceFunction["LorentzCoordinate2D"][ returns the labeled Lorentz transformed coordinate type of causal graph. |

The ResourceFunction["SimpleCausalGraphCoordinates"] can generate a causal graph one can input to this function.

ResourceFunction["SimpleCausalGraphCoordinates"] offers several *type* of the causal graph: "Triangle" stands for Triangular grid, "Hexagon" stands for Hexagonal grid and "Triangle-Hexagon" stands for Triangular-Hexagonal mixed grid.

The result of ResourceFunction["LorentzCoordinate2D"] is given as a list of elements. Each element in the result represents a node and contains its information as a triple of the form {*index*,*time*,*spacecoordinate*}.

For example, the data set {{1,0,2},{2,0,-2},{3,2,0}} represents three-point coordinate information of the triangular shaped causal graph. The first element of each set is the index of the point, eg. point 1, point 2, point 3. The second and third elements are the temporal and spacial coordinates, e.g. point 1 is the event at time=0, space=2.

Here the causal graph use the same analogy as Minkowski space-time diagram which one axis noted for space coordinate and one axis is for time. One can assume this function describes the one-spatial direction(eg. x-axis) motion on the space-time, so we do not need other(eg. y- or z-axis) coordinate.

The function uses the Lorentz transform *x*'=*γ*(*x*-*β* c t), *c**t*'=*γ*(*ct*-*β**x*), where *γ* is the standard Lorentz term .

Construct the simple triangular shape causal graph with initial node size 2:

In[1]:= |

Out[1]= |

Find the Lorentz transformed causal graph coordinate values with *v*/*c*=0.3:

In[2]:= |

Out[2]= |

Construct the simple hexagonal shape causal graph with initial node side 3:

In[3]:= |

Out[3]= |

Find Lorentz transformed causal graph coordinate values with *v*/*c*=0.3:

In[4]:= |

Out[4]= |

The graphical description of triangle causal graph is given as:

In[5]:= |

Out[6]= |

Show a graphical description of the Lorentz-transformed triangle causal graph at *v*/*c*=0.3:

In[7]:= |

Out[8]= |

Show a graphical description of hexagonal causal graph with initial *node*=3:

In[9]:= |

Out[10]= |

Show a graphical description of the Lorentz-transformed hexagonal causal graph at *v*/*c*=0.3:

In[11]:= |

Out[12]= |

By using different causal data sets instead of the resource function SimpleCausalGraphCoordinates, one can generalize the causal graph structure with arbitrary rewriting rules.

- 1.0.0 – 14 June 2022

This work is licensed under a Creative Commons Attribution 4.0 International License