Meshing Highly Regular Structures : The Case of Super Carbon Nanotubes of Arbitrary Order

Mesh generation is an important step inmanynumericalmethods.Wepresent the “HierarchicalGraphMeshing” (HGM)method as a novel approach to mesh generation, based on algebraic graph theory. The HGMmethod can be used to systematically construct configurations exhibiting multiple hierarchies and complex symmetry characteristics. The hierarchical description of structures provided by the HGM method can be exploited to increase the efficiency of multiscale and multigrid methods. In this paper, the HGMmethod is employed for the systematic construction of super carbon nanotubes of arbitrary order, which present a pertinent example of structurally and geometrically complex, yet highly regular, structures. The HGM algorithm is computationally efficient and exhibits good scaling characteristics. In particular, it scales linearly for super carbon nanotube structures and is working much faster than geometry-based methods employing neighborhood search algorithms. Its modular character makes it conducive to automatization. For the generation of a mesh, the information about the geometry of the structure in a given configuration is added in a way that relates geometric symmetries to structural symmetries. The intrinsically hierarchic description of the resulting mesh greatly reduces the effort of determining mesh hierarchies for multigrid and multiscale applications and helps to exploit symmetry-related methods in the mechanical analysis of complex structures.


Introduction
In recent years, mesh generation, which is an important part of most numerical analyses, has emerged as a research subject in its own right [1].Various methods for the creation of meshes exist, yet many concepts are not formalized, and different approaches exist in various fields in both research and applications.
We propose a new method, the "Hierarchical Graph Meshing" (HGM) method, to generate meshes of complex, yet highly regular, structures.We apply this method to the construction of super carbon nanotubes (SCNTs) of arbitrary order.SCNTs are derived from carbon nanotubes (CNTs).CNTs are graphitic microtubules, first described in greater detail in [2].Graphene and many graphitic compounds exhibit exceptional mechanical properties, such as high strength and tensile modulus.Figures 1 and 2 show the hierarchy and symmetry characteristics of a super carbon nanotube, an example of a highly hierarchical structure exhibiting multiple symmetries.The hierarchy of the SCNT results from the fact that a SCNT of a given order is always composed of a collection of constituent structures derived from the preceding order; that is, a SCNT of order 1 consists of carbon nanotubes ("SCNTs of order 0"), which in turn consist of carbon atoms and their bonds.The SCNT also exhibits multiple intertwining symmetry characteristics: translational, reflectional, and rotational symmetry.The combination of multiple symmetry characteristics is also being shown in Figure 3.
The geometric aspect of obtaining a monolithic mesh of a super carbon nanotube of higher order is a nontrivial task, involving nonlinear transformations of the constituent elements at each hierarchy order.We would like to stress, (i) Carboncarbon bond (ii) SCNT of order 0 (common carbon nanotube) (iii) SCNT of order 1 (iv) SCNT of order 2 Figure 1: Hierarchy of a super carbon nanotube.Each hierarchy level is composed of elements of the preceding hierarchy level.Starting with the carbon-carbon bond (i), it is thus possible to obtain super carbon nanotubes (SCNTs) of arbitrary order.The image is based on data obtained by the graph-based HGM method.
however, that this text focuses almost exclusively on the structural aspect of the construction of super carbon nanotubes and does not offer any detailed description of their geometry.The HGM method is applicable to all situations in which a mesh characterized by regularities such as hierarchy and symmetry either reflects the actual physical characteristics of a structure or emerges as part of the modeling process.It can be used both to build a structure based on certain regularities and to describe a given hierarchically symmetric structure.In particular, as an example of the latter case, geometrically irregular structures may be represented by meshes that exhibit certain structural regularities.Hierarchy and symmetry characteristics may also emerge as a result of design decisions.For example, frameworks of trusses are often characterized by multiple symmetries (see Figure 3).
It is important to distinguish structural symmetry and geometric symmetry, as the former does not depend on the existence of the latter and, in the absence of fractures or other topological changes, is preserved in deformed structures that are no longer geometrically symmetric.
Regular meshes are often used for academic examples and for the analysis of structures that exhibit simple forms of symmetry.In contrast, more complex structures that, in principle, would lend themselves to a description by meshes that preserve their hierarchy and symmetry characteristics are often described by irregular meshes.As a consequence, important hierarchy and symmetry information is lost and can no longer be exploited in the subsequent analysis.In contrast, the HGM method proposed in this paper results in a tuple-based indexing system which preserves such regularities and provides a systematic and formalized way to describe and to generate meshes (see Figure 4).
Many, if not all, structures that may be generated by the Hierarchical Graph Meshing (HGM) method presented here can as well be produced on an ad hoc basis, applying elementary transformations on indices representing the nodes and interdependencies of the mesh.However, such ad hoc methods lead to descriptions of the resulting configurations that are highly dependent on the specific operations chosen to generate the mesh.
In this situation, it is difficult to communicate the actual meaning of the description of the resulting structure, as one has to refer to elementary operations rather than abstract, but exactly defined, steps of the generation process.Such abstract steps include translational, reflectional, and rotational symmetries and hierarchy characteristics, including self-similarity.A systematic and modularized method of generating hierarchical and symmetric meshes, such as the graph-theoretic method presented here, is also a precondition for the development of computer algorithms and programs that can be used for the production of large classes of meshes, providing defined interfaces for both input and output of mesh-related information.
Seen from this perspective, one of the major advantages of the HGM method is precisely the fact that it enables generic program modules to do most of the basic work associated with the meshing process.As a result, researchers and practitioners can focus on the specific characteristics of their respective problems and task instead of coping with the often tedious work associated with elementary indexing systems and operations.
(1) The HGM Method in the Context of Multigrid Algorithms.The HGM method results in tuple-based descriptions of configurations that contain the hierarchy-related information in an explicit and readily accessible form.This information can in turn be used in the subsequent mechanical analysis of the structure.
Multigrid methods are usually based on coarse meshes that are derived from the fine mesh often by heuristic methods.With the HGM method, coarse meshes, which can be based on the leading indices of the tuples identifying the nodes, can be built in parallel with the generation of the fine mesh.With regard to complex, highly regular structures, multigrid and multiscale methods can therefore benefit greatly from the application of the HGM method.
Both multiscale and multigrid methods have become important tools in the analysis of a wide range of physical phenomena, including problems in solid and fluid mechanics [3][4][5].Increases in computational power and refinements in programming tools and concepts have enabled researchers to develop conceptually complex but highly efficient algorithms in a systematic way, providing diverse methods with a potentially wide range of applications [6].
Generic multigrid methods, such as the algebraic multigrid method (AMG), can be applied to a wide range of problems and lead to algorithms generally characterized by good accuracy, robustness, and convergence.For unstructured grids, such generic methods, in combination with heuristic algorithms for coarsening and interpolation, are often the methods of choice.Coarsening methods include the Ruge-Stüben (RS) algorithm [7], parallel independent set algorithms [8,9], and the multilevel incomplete lowerupper triagonal (MLILU) decomposition [10].The Falgout coarsening scheme, which combines aspects of the RS and the parallel independent set algorithms, is described in [11,12].A challenge in the development of such algorithms is to achieve computational efficiency and good scalability in parallel implementations and to construct meshes that have predictable local characteristics and optimize speed and convergence rates in the subsequent calculations.(See also [13].)In the context of the algebraic multigrid method, it has been proven difficult to model configurations characterized by rapid and oscillating changes in the element-related coefficients [14].
Meshes may result from the discretization of a continuous configuration, or they may be essentially determined by the underlying physical model as in atomistic simulations.Regularities may be given by exact or approximate geometric periodicity, symmetry, or hierarchy of the structure itself, or they may be introduced by the meshing process as a result of the specific discretization chosen to model an otherwise irregular structure.In the latter case, irregular configurations may be discretized by regular meshes, or topological as well as approximate geometric regularities may be described by meshes that are regular from a structural, or graph-theoretic, viewpoint.
In the presence of such regularities, the HGM method proposed in this paper preserves these characteristics as an integral part of the description of the mesh, thus enabling the systematic construction of mesh hierarchies for multigrid and multiscale methods.While regularities at the finer grid levels may be most interesting in the context of the variational multiscale method [15], applications of the heterogeneous multiscale method [16] may focus more on regularities at coarser grid levels.Reference [17] shows that multigrid transfer operators that do not take the specific characteristics of the finer grid into account, such as injection and projection and linear interpolation, and even transfer operators based on (a) Sequential indexing: the information about the reflection symmetry cannot be retrieved from the indices (b) Tuple-based indexing: the leading index identifies the symmetric parts of the graphs as well as the invariant nodes.
The trailing index identifies mutually symmetric nodes Schur complements are less efficient than transfer operations derived from the application of a homogenization method adapted to the respective problem.Algebraic multigrid (AMG) methods [18,19] do not depend on a predefined hierarchy of meshes.Thus, direct input from the HGM method, which focuses on the description of structured meshes, is not strictly necessary to implement AMG methods.However, it is possible to refine structured meshes at a coarser level, which may be constructed by the HGM method, by unstructured meshes at the finer level, and a systematic description of the existing regularities of the mesh helps to implement efficient mesh adaptation and parallelization strategies.In addition, the HGM method is based on structural regularities, not geometric regularities.Thus, the ability of AMG methods to process meshes without geometric regularities may be combined with input from the HGM method based on structural regularities.Such regularities may be simply based on patterns of a stronger and weaker linkage between variables.
Thus, HGM and AMG, as well as other multigrid algorithms, can be combined to obtain efficient, modular, and widely applicable strategies for the solution of engineering problems.
(2) Basic Characteristics of the HGM Method.The Hierarchical Graph Meshing (HGM) method can be understood as a sequence of modules, each of which creates a particular hierarchy or symmetry characteristic of the resulting graph.In the most basic case, a set of graphs is combined to form a single, hierarchically structured graph.In this case, each node is identified by a two-index tuple, with the leading index indicating the graph from which the node originated.If two or more of the original graphs are mutually symmetric, then this symmetry is being retained in the resulting graph, which thus becomes a hierarchically symmetric graph.
Such hierarchically symmetric graphs may exhibit more than one hierarchy level and more than one symmetry.In particular, symmetries may be of different kind, that is, reflectional as well as translational and rotational symmetries, and may have one or more invariant node sets.The modularized nature of the HGM method allows setting up the parameters for each hierarchy and/or symmetry characteristic separately.Thus, all information of a structure, such as information related to the geometry, the topology, or the connectivity, as well as the symmetries at different hierarchy levels of the structure, is being introduced in well-defined steps of the algorithm, avoiding a patchwork of ad hoc solutions that are often being applied in the generation of actual meshes for finite element analyses or other purposes.
Retaining the information related to the symmetry characteristics opens new and efficient methods for the mechanical analysis of hierarchically symmetric structures.For example, the stiffness matrix of a geometrically symmetrical configuration can be block-diagonalized using symmetry group operations [20][21][22].Information about the hierarchy of a configuration can also be used to efficiently compute important characteristics of a structure, such as its eigenvalues [23].Preserving the information on the hierarchy of a structure is also important with regard to domain decomposition techniques.Exploiting the symmetry characteristics of a configuration can greatly reduce the computational effort involved in finite element analysis [24].However, concepts related to symmetry group operations have not been incorporated into general-purpose finite element programmes in a way that allows for an automatized processing of symmetric configurations [25,26].To the knowledge of the authors, no implementations of any algorithms that deliver similar results exist, thus precluding the possibility of performing quantitative comparisons against established alternative approaches.
Algebraic graph theory is a powerful tool for the systematic generation of meshes, and the elementary steps of the construction algorithm rely on algebraic operations of directed and undirected graphs.In this paper, a particular formulation of graphs, based on directed graphs, is being used.Reference [27] has demonstrated that directed graphs allow for the generation of a larger set of hierarchically structured configurations compared to undirected graph.
The graph-algebraic approach allows for a computationally highly efficient implementation of the algorithm.As complex steps can be described as a well-defined sequence of elementary operations, and operations can be arranged in a way that minimizes computational cost, code optimizations can focus on a small subset of the overall program.In addition, as a result of the identification of arcs as pairs of tuples of indices, basic operations such as intersections, unions, and compositions of graphs can be calculated in a very efficient way, especially for highly hierarchical and symmetric graphs.Generally, the exploitation of hierarchy and symmetry characteristics, if present, significantly reduces the computational cost.For carbon nanotubes (CNTs) and super carbon nanotubes (SCNTs) [28,29], which can be seen as a reference case of hierarchically symmetric structures, a MATLAB-based implementation developed by the authors scales linearly with the number of nodes in the respective mesh.
The atomic-scale finite element method can be used to explore the mechanical properties of molecular structures [30].Reference [31] developed a computationally efficient algorithm based on the atomic finite element method for the analysis of large-scale carbon structures.Using continuum mechanics methods, CNTs and tube-like connections in SCNTs have been modeled as cylinders as well as structures composed of Euler and Timoshenko beams [32].In this context, the HGM method proposed in this paper provides a description of configurations such as SCNTs that help to integrate such approaches into a multiscale concept for analyzing large-scale molecular structures.
(3) Outline.In the section immediately following this introduction, we provide a brief outline of the geometry and the common structural properties of super carbon nanotubes (SCNTs).In SCNTs, multiple hierarchy and symmetry properties are intertwined in a complex way.Thus, such structures are excellent examples that illustrate the characteristics of the HGM method presented in this paper.
Section 3 presents the graph-theoretic foundation of the algorithm.It extends commonly used graph-theoretic operations by introducing unary and binary operations on hierarchical graphs, such as the composition of graphs and the categorical product.Section 4 introduces the concept of graph symmetry and its relation to the description of structures by hierarchical graphs.
Section 5 applies the methods and operations developed up to this point to construct SCNTs of arbitrary hierarchical order.The hierarchical nature of the SCNT structure is reflected in the similarity of the different steps of the construction algorithm, which can be grouped into sequences, each comprising specific steps based on a common template.Section 6 reviews a MATLAB-based implementation of the HGM method, compares the method to a geometry-based algorithm that employs a neighborhood search algorithm, and analyzes the performance of the HGM algorithm for super carbon nanotubes of different sizes and hierarchical orders.
The main results are summarized in the concluding section.Some proofs related to algebraic graph operations are given in Appendix.[28,29], take this interpretation of the structure of super carbon nanotubes as the starting point.This process can be recursively applied to generate SCNT structures of arbitrary order of hierarchy.Following [28], we identify the single-walled CNT with the SCNT of order 0. The SCNT of order 0 is the first step in the iterative process of generating SCNTs of arbitrary order, as shown in Figure 1.

Geometric and Structural Properties of Super Carbon Nanotubes
Figure 5 shows a SCNT junction, a constituent part of the SCNT of order 1, and its projection onto the horizontal plane of symmetry and one of the vertical planes of symmetry.The starting point of the construction of these symmetries is the rotational axes of the branches of the junction.In a fully symmetric junction, these rotational axes coincide in a single point.A vertical rotation axis exists, which contains this point of intersection and is perpendicular to all rotational axes of the adjacent CNTs.We denote this axis as   and the three rotational axes of the CNTs as   ,  ∈ {1, 2, 3}.In the following, we write the plane that includes all points of two lines,  and , as (, ).A regular junction has four planes of symmetry:  (i) The plane ( 1 ,  2 ) = ( 2 ,  3 ) = ( 3 ,  1 ), which we will call the horizontal plane of symmetry.
In addition, a regular junction exhibits a 3-fold rotational symmetry with respect to   axis, the symmetry axis.
In order to retain the multiple symmetries of SCNTs in mesh generation, it is helpful to abandon the traditional interpretation of SCNTs as collections of tube elements and junction elements.Instead, we interpret a SCNT as a CNT in which the carbon atoms are being replaced by Y-shaped junctions that comprise both the "traditional" junction elements and half of the adjacent carbon nanotube elements.These Y-shaped junctions are being connected at their ends by carbon-carbon bonds, in the case of the zigzag orientation, or, alternatively, share a "ring" of carbon atoms, in the case of the armchair orientation.

Super Carbon
Nanotubes as Embedded Surfaces.Super carbon nanotubes, as well as CNTs, are graphene-based structures.A graphene sheet can be viewed as a hexagonal lattice of carbon atoms or as a trigonal lattice of hexagons that are being formed by six carbon atoms, respectively.Following the latter interpretation, a graphene sheet in the Euclidean space can be thought of as a 2-dimensional surface embedded in a 3-dimensional space.
Similarly, a CNT, as a graphene-based structure, can be thought of as a 2-dimensional surface embedded in a 3dimensional space.Therefore, the theory of hypersurfaces, a branch of differential geometry, can be used to explore its geometric properties.The following exposition of such basic properties draws on concepts and terms originating from differential geometry.
In the case of the simple CNT, the surface, when interpreted as the surface of a cylinder, has zero Gaussian curvature and can thus be unrolled onto a plane.Therefore, a CNT may consist entirely of hexagons.The respective surface of a SCNT, however, is a surface of higher genus (i.e., it necessarily has "holes") with a negative Gaussian curvature.This implies that this surface cannot be unrolled onto a plane and that it is not possible to construct such a surface based exclusively on hexagons.
Differential geometric observations show that the number of different types of polygons in each junction element is not arbitrary.While different combinations of nonhexagonal shapes, for example, pentagons, heptagons, or octagons, are possible, and these "defects" may be located at different positions on the junction element, the resulting structure's Euler characteristic, defined as the sum of atoms and surface elements minus the number of bonds, must match the total curvature of its surface, divided by 2.For closed surfaces, the total curvature is determined by the genus of the respective surface.It can thus be shown that a junction element with three ends, independent of its specific geometric shape, has a total curvature of  = −2 and that the number   of -edged surface elements in a junction element must fulfill the condition −(1/3) ∑ ∞ =3 ( − 6)  = .Thus, a junction element, in addition to an arbitrary number of hexagons, may contain, for example, three octagons or six heptagons or a combination of six octagons and six pentagons.This finding has been presented in more detail in [33][34][35].

Graph Algebra
The elementary operations employed in the HGM method are based on graph-theoretic concepts.Therefore, in order to lay the groundwork for the subsequent presentation of hierarchically symmetric graph and the description of the construction of super carbon nanotubes, we develop a graph algebra based on elementary unary and binary graph operations.
The following exposition, in part, draws on, and in some cases expands on, the algebraic approach to graph theory as presented in [36][37][38][39].A very accessible introduction to graph theory can be found in [40].In particular, the union, intersection, and product operations are well known, although they generally have been defined for undirected, loopless graphs [38,[41][42][43].The composition of graphs can be regarded as a graph morphism, and the theory of graph morphisms can be readily applied.If we identify graphs with graph morphisms, however, we can regard them as elements of a half-ring, thus enabling us to use the properties of half-rings, for example, distributive laws, in order to streamline and simplify calculations.To the knowledge of the authors, no attempt to use these properties of graph morphisms in order to construct large, highly regular structures has been made in the existing literature.
Graphs are an abstract concept of relations between elements of a set.The elements of such a set may be actual physical items, or they may be abstract entities, such as the nodes derived from the discretization of a structure.Hierarchies and symmetries can be defined on graphs, and such properties of a graph can be used to characterize the structure that it represents.Generally, graph-based hierarchies and symmetries are not dependent on geometric hierarchies and symmetries, although structures that exhibit regularities from a graph-based perspective often show related regularities from a geometric viewpoint.

Directed Graphs.
In many practical applications, graphs are primarily interpreted as a systematic collection of data.In graph theory, the structure of graphs and of the operations that can be performed on graphs is more formalized.However, different concepts exist to describe graphs.
In textbooks on graph theory, graphs are generally introduced by defining undirected graphs, and directed graphs are often described as structures that are generated by transforming undirected graphs (e.g., in [36,44]).In contrast, the graph algebra presented in this paper takes directed graphs as its starting point.This follows the approach taken in [39].Reference [27] has also employed directed graphs to construct large structural models, using different graph products to describe specific graph operations. 1  Various definitions and notations of graphs are being used in the literature.In order to build a more comprehensive algebraic structure, we identify directed graphs Γ(W, A) with ordered pairs consisting of a node corridor W and a set of arcs A.
A graph space of dimension  is denoted as G () .If the nodes of the graphs belonging to the graph space are given by a one-element index, then  = 1, and the space of directed graphs of dimension 1 is denoted as G (1) .If the nodes are given by a multi-index, and  is the number of elements in a tuple that identifies a node in the graph space, the space of directed graphs is a space of hierarchical graphs of dimension  and is denoted as G () .
In order to simplify the following exposition, we introduce two basic operations for tuples, the natural projection, denoted by , and the -ary Cartesian product, denoted by cart.Let (  )  =1 = ( 1 ,  2 , . . .,   , . . .,   ) denote a tuple composed of  sets   .Then, the natural projection is given by and the -ary Cartesian product, which maps a tuple of sets to a set of elements, is given by cart : (  ) For tuples of sets, we define set operations based on the representation of such tuples as disjoint unions.Thus, for tuples of sets given by  fl (  )  =1 and A nonempty node corridor W = {(S, T)} can be represented by an ordered pair of tuples, a set of source nodes S and a set of target nodes T. Operations on graphs may, however, result in an empty node corridor that would be represented by an empty set.For this reason, the node corridor is defined as a set of tuples, containing at most one element, not as a single tuple.
The nodes V of a nonempty graph are given by the union of the source nodes and the target nodes; that is, V fl S ∪ T. Figure 6 shows an example of a graph in the graph space G (2) .In this figure, as well as elsewhere, some tuples are denoted as The arcs of a graph can be understood as directed connections between source nodes and target nodes; that is, an arc connects a node V ∈ cart(S) to a node V  ∈ cart(T). 2  Arcs can thus be represented by ordered pairs of nodes, (V, V  ).As a result, the arcs belonging to a graph, A, are a subset of the arc space, A () , which itself is constructed from the node space V () : We introduce two functions that can be used to identify the source nodes and the target nodes, respectively, of an arc, a set of arcs, or a node corridor.The source of an arc , that is, the domain, indicated by the first element of the tuple representing the arc, is given by () fl  1 (), and its tail, or the range, indicated by the tuple's second element, is given by () fl  2 ().Thus,  ≡ ((), ()).For sets of arcs  ∈ A, we also define the functions () fl {() |  ∈ }, and () fl {() |  ∈ }.For a graph  = Γ(W, A), W ̸ = {}, we define  W () fl (W) = S,  W () fl (W) = T,  A () fl (A), and  A () fl (A).For W = {}, these functions result in the empty set.
If () = (), the arc  connects a node with itself and is also called a loop.We call nodes that are connected to other nodes, or to themselves, that is, the elements of V  fl (A) ∪ (A), connected nodes.Nodes that are not connected, that is, the elements of V  fl V \ V  , are called isolated nodes.As a unary operation in G () , we define the opposite of an arc as  * fl ((), ()) and the opposite of a set of arcs as The union and the intersection of two sets of arcs,  and   , are given by the common set-theoretic operations; that is, We can thus define two binary operations in the graph space G () : the union of two graphs is given by Γ The union and the intersection of two graphs are illustrated in Figures 7(a) and 7(b).The unary graph operation resulting in the opposite graph, as well as several fundamental binary graph operations, is collected in Table 1.

Undirected Graphs.
While an arc is a directed connection between two nodes, an edge is an undirected connection between two nodes.We can therefore represent arcs by ordered pairs of the nodes incident to them and edges by the sets of the nodes incident to them.Graphically, edges may be represented by two arcs pointing from a node V  to a node V  , and vice versa, or by a line between the two nodes.A loop is an arc that is identical to its opposite; thus loop edges are represented as arcs pointing from a node V  to itself.
We introduce a function  that maps an arc  ∈ A () to an edge  ∈ E () , with E () being the edge space: We can identify edges and arcs as follows: E () ∋ () ≅ {,  * } ⊆ A () .Note that the set {,  * } contains only one element if () = (), as this condition implies  =  * .Similarly, the function  shall map a set of arcs  to a set of edges : With regard to a nonempty node corridor W = {(S, T)}, we define the result of the function  as When applied to graphs, the function  shall map a directed graph Γ(W, A) to an undirected graph Υ((W), (A)).With the nodes V = (W), edges E fl (A), and the space of undirected graphs of order  denoted as U () , we have We can identify undirected graphs with directed graphs as follows: This allows us to use the operations defined on directed graphs in order to evaluate the respective operations on undirected graphs.

The Composition of Graphs.
In addition to the union and the intersection, we introduce the composition on G () .Let ,   ∈ A, as defined in (3).Then, For two sets of arcs,  ⊆ A and   ⊆ A  , the composition is defined as and, for two node corridors, W = (S, T) and W  = (S  , T  ), the composition is defined as Based on these definitions, the composition of two graphs can be defined as The composition of two graphs is illustrated in Figure 7(c).We define the composition of two graphs of different dimensions as follows: for graphs where  V  is the identity graph in the node space V  and We denote the -fold composition of a graph  with itself as   .The closure of a graph under the composition, which we will also refer to as the closure of the graph, without further specifications, is given by the union of the compositions of the graph with itself: () = ⋃ ∞ =1   .For a finite graph , there is a finite number  such that () = ⋃  =1   for  ⩾ .The empty graph without nodes, which we will also call the zero graph,  fl Γ({}, {}), is the neutral element in G () with regard to the union operation.The union, the intersection, and the composition are associative operations, and the composition distributes over the union. 3 With regard to the opposite graph, we observe that (  ) * =   *  * and (∪  ) * =  * ∪  * for all ,   ∈ G () .

Special Graphs and Graph Operations.
For two graphs ,   ∈ G () , we introduce the conjugation  ⬦   fl    * . 4In particular, when applied to an undirected graph, the conjugation results in another undirected graph, with the node corridor given by the source nodes of that graph.Figure 8 illustrates the results of the composition and the conjugation applied to an undirected graph.
For brevity, we generally omit the composition symbol "" and the juxtaposition of two graphs indicates the composition.Often, we assume that V  is isomorphic to the integers Z and represent a node V  () ,  () ∈ Z  , with the respective tupel  () .
If, for a node corridor W, the set of source nodes S is identical to the set of target nodes T, that is, S = V and T = V, and we define V by a tuple Ω of  sets of   natural numbers ranging from 0 to   −1, then, as a shorthand notation, we write Γ Ω (A) or Γ A Ω for Γ(W, A) and Υ Ω (E) or Υ E Ω for Υ({V}, E).The identity graph is denoted as  Ω fl Υ({V}, {{V} | V ∈ V}), and the respective -node empty graph is denoted as  Ω fl Υ({V}, {}).With V  ∈ V, we also write   Ω for Υ({V}, {{V  }}), and, with  ⊆ cart(V), we write   Ω for Υ({V}, {{V} | V ∈ }).In these shorthand notations, Ω may be replaced by V itself.
For two graphs  = Γ(W, A) and   = Γ(W, A  ) with identical node corridors W, the relative complement is given as  \   fl Γ(W, A \ A  ).
We introduce a transfer graph  A Ω fl  A Ω ∪ ( Ω \   Ω ), with  = (A) ∪ (A).The concept of the transfer graph is particularly important for the algorithm for the construction of hierarchically symmetric graphs, as described in Section 4.
The composition of a graph Γ Ω (A  ) with a transfer graph  A Ω , that is, the operation Γ Ω (A  ) ∘  A Ω , shifts the domain of each arc   ∈ A  , for which (  ) ∈ (A), from (  ) to {() | () = (  ),  ∈ A}.The conjugation  A Ω ⬦  transfers both the domains and the ranges of the respective arcs of the graph (2, 3) The composition of two undirected graphs generally results in a graph that is not undirected (2, 3) The conjugation of an undirected graph results in an undirected graph  .. Figure 9 shows how a transfer graph can be used to modify an undirected graph by conjugation.
We denote a directed graph of  nodes that consists of a single directed path connecting the nodes sequentially as where  is an ordered set, ⃗   denotes a graph that connects all nodes represented by  sequentially, according to the order of .For example, ⃗  Z fl Γ Z (⋃ ∈Z {(V  , V +1 )}).We define the respective directed cycle graph, which also contains an arc that connects the last node to the first node, by ), if  is defined as an element of the cyclic group Z/Z.These specific graphs are generally defined as undirected graphs   and   , with   = ( ⃗   ) and   = ( ⃗   ).

The Categorical Product.
The categorical product allows combining graphs in a way that models the hierarchical aspects of the underlying structure.From two graphs,  ∈ G () and   ∈ G () , a graph in the graph space G (⋅) can be constructed.
The categorical product of two arcs is given by  ⊗   fl (( () ,  (  )) , ( () ,  (  ))) , and the categorical product of two sets of arcs is given by With regard to two node corridors, W = (S, T) and W  = (S, T  ), we define the categorical product as W ⊗ W  fl ((S, S  ), (T, T  )).
The categorical product of two graphs [41] is thus given by The composition distributes over the categorical product, and the categorical product distributes over the union: for , and, in particular, ( 1 ⊗  2 ) ̸ ≡ ( 1 ) ⊗ ( 2 ).However, for the intersection, we have  1 ⊗ 2 ∩ 3 ⊗ 4 = ( 1 ∩ 3 )⊗( 2 ∩ 4 ). 5  Figure 10 shows the result of the categorical product of two graphs.We use the notation "⊗" instead of the more commonly used notation "×" to avoid ambiguity with regard to the Cartesian product of sets.

Hierarchically Symmetric Graphs
If a structure exhibits both symmetries and hierarchies, then these properties and their relationship should be preserved when describing such a structure as a graph.Often, different (2) (3) (4) The graph  3 is given by Γ({, , }, {(, ), (, ), (, )}).The map  :  1 →  3 , given by  symmetry characteristics present in a given structure are hierarchically related, making the hierarchical aspect of the graph-based description the precondition for the precise description of the symmetry characteristics.Therefore, the concept of the hierarchically symmetric graph is central to an efficient description of such structures.Hierarchically symmetric graphs of order  are a subset of the graph space G () .They are characterized by a hierarchical structure, with nodes identified by tuples, and symmetry relations between parts of the graph that can be identified by the hierarchical description.
The super carbon nanotubes described in the preceding sections are pertinent examples of hierarchically symmetric graphs.
In graphs, symmetries can be characterized by graph automorphisms.We therefore recall the formal definition of a graph automorphism, which is based on the more general concept of a graph homomorphism.
Minors play an important role in graph theory, as they help to describe basic properties of graphs.In the following, we will combine the concept of a graph minor with the concept of a hierarchical graph, introducing the notion of a natural minor.

(a) provides examples of a graph homomorphism.
A graph isomorphism is a bijective graph homomorphism.A graph automorphism is a graph isomorphism that maps a graph onto itself.Graph automorphisms can be induced by node permutations, as for any node permutation  there is a unique arc mapping  A () :   → ((()), (())). 6 Figure 11(b) provides examples of a graph isomorphism and a graph automorphism.
A graph is said to have an -fold symmetry if there exists a graph automorphism   , induced by a node permutation, such that   = Id and   ̸ = Id for 0 <  < .Two graphs are symmetric with regard to each other if they can be mapped onto each other by an isomorphism. 7  4.2.Describing Hierarchical Graphs: Graph Minors, Projections, and Symmetries.We recall that a hierarchical graph of order  is an element of the graph space G () .Following   The construction of a natural minor can also be thought of as a natural projection of a hierarchical graph of order  onto its outermost −1 hierarchy levels: to remove the last element from an -element-tuple  = (  )  =1 , we define the function  :   → (  ) −1 =1 .Then, for a graph  = Γ((S, T), A) ∈ G () , the function  :   → Γ(((S), (T)), {() |  ∈ A}) maps  to its first natural minor.Thus, for every hierarchical graph, there exists a well-quasi-ordered set [36, p. 316-317] of minors given by  ≽ () ≽  2 () ≽ ⋅ ⋅ ⋅ ≽   (), which we call a hierarchy of natural minors.
A graph automorphism can be said to be induced by an automorphism of its minor, or be described as a minorinduced automorphism, if the automorphism maps all nodes of one branch set to the nodes of another branch set while preserving the relations between them.An automorphism  of a graph  ∈ G () , induced by its th natural minor, thus maps the node V  ,  = (  )  =1 , to the node V Ĩ, Ĩ = φ((  ) − =1 ) × (  )  =−+1 , with φ given by an automorphism of its th natural minor   ().
A natural minor of a hierarchical graph can be understood as its natural projection on its outermost hierarchy levels.However, hierarchical graphs may also be projected on arbitrary hierarchy levels.Let  be a reordering of an element-tuple, and, for a graph  = Γ((S, T), A) ∈ G () ,  :   → Γ(((S), (T)), {() |  ∈ A}), such that  − ∘ () is the projection of  onto  hierarchy levels.Then, a projectioninduced automorphism , with φ given by an automorphism of its projection on  hierarchy levels, maps the node V  ,  = (  )  =1 , to the node ).Thus, we first permute the entries of the tuples identifying the nodes, so that all symmetry operations that we want to consider are being induced by the respective natural minor.We then apply the symmetry operations.Finally, we reverse the permutation of the entries of the node tuples.
For a projection-induced automorphism   , let   denote the set of invariant hierarchy levels of the natural projection inducing the automorphism.We say that a hierarchical graph has a (  )  =1 -fold multiple hierarchical symmetry if there exists a graph automorphism Φ fl ⨁  =1   , based on  projectioninduced automorphisms, such that   ∩   = {} for  ̸ =   .The graphs representing the structure of symmetric regular super carbon nanotubes exhibit this kind of multiple hierarchical symmetries.

Construction of Hierarchically Symmetric Graphs.
Hierarchically symmetric graphs can be constructed by combining multiple instances of a given graph in a way that preserves graph isomorphisms between these instances.In the simplest case, a graph is duplicated by taking the categorical product:   →   ⊗ .This results in  disconnected subgraphs which are pairwise isomorphic.We call the graph , which constitutes the starting point of the construction process, the constituent graphs.For translational and reflectional symmetries, there is often a need to define a border branch set, which belongs to two isomorphic subgraphs of the resulting graph and separates the remaining parts of these subgraphs, which are mapped to the interior branch sets.For rotational symmetries, an invariant branch set, which can be thought of as being situated on the rotational axis, must be defined.Figure 13 depicts examples of hierarchically symmetric graphs, their branch sets, and their constituent graphs.
In most cases, the interior and the border subgraphs of a constituent graph will not be natural branch sets of that graph.In order to modularize the overall construction, it is useful to add another dimension to the graph that separates the subgraphs into natural branch set.In this case, it is much easier to define transfer graphs that can be used to actually construct the hierarchically symmetric graph.Figure 14 shows an example of the steps involved in the construction of a hierarchically symmetric graph.
Note the composition of the graph   , which is derived from the constituent graph , with the transfer graph  and the symmetry graph , involves graphs of different dimensions.In this case, the composition is given by  1 ∘ 2 fl ( 1 ⊗ ⨂ − =1  V  )∘ 2 for dimension  of  2 greater than dimension  of  1 (the definition for  >  is symmetric).The transfer graph only depends on the choice of the natural minor of the hierarchical graph that is being constructed and on the border branch sets assigned to the constituent graph.Thus, the symmetry characteristic of the resulting hierarchically symmetric graph does not depend on the internal structure of the interior or the border subgraph of the constituent graph.

Constructing Super Carbon Nanotubes of Arbitrary Order
The concepts introduced in the preceding sections enable us to model the structure of carbon nanotubes (CNTs) of higher order in a systematic way.The result, a hierarchically symmetric graph, allows one to readily identify hierarchies and symmetries at all hierarchy levels, as well as similarities between the different levels of the hierarchy.In addition, by evaluating the geometry-related functions set up in conjunction with the graph, a mesh in the traditional sense, that is, based on a one-dimensional, sequentially ordered set of nodes, can be derived from the graph at low computational cost.

Hierarchically Symmetric Graphs and Geometry.
Meshes are generally understood as a collection of information of (a) a list of nodes together with their geometric position and (b) a list of elements (which may reduce to simple edges) together with a function that associates each element (or edge) to a list of nodes.The latter information may be provided by a connectivity list, a common approach in FE models.A graph, however, does not contain any information about the geometry.While geometric representations of graphs are commonly used to illustrate graphs, all operations on graphs are independent of the geometric position assigned to its nodes, and graphs indeed do not necessarily represent objects that do have a reasonable geometric representation.
Therefore, if a graph created by the Hierarchical Graph Meshing method presented in this paper is to be used to investigate the mechanical properties of a structure, it must be combined with geometric information about the position of the nodes. 8 In the most general case, a mesh Ω associated with a hierarchical graph  ∈ G () can be denoted as a tuple Ω = (, Φ), in which Φ : (V,   ) →  is a function that maps each node For a geometrically hierarchical mesh, the function Φ is a composition of functions   , such that (15) where each function   ,  > 1, takes the domain of the preceding function ( −1 ) and the th index of the tuple representing the node as arguments:   : V  × ( −1 ) → (  ).The codomain of the th function,   , is the vector space : (  ) = , and the domain of the function For a hierarchically symmetric mesh, the function Φ : V →  is a composition of functions   , as in the case of the geometrically hierarchical mesh, but with the additional constraint that, for each , 1 ⩽  ⩽ , there exists a bijection   from the canonical projection of the node space V, that is, V  , to a geometric symmetry group such that   (V  ) =   ∘   (V  ) ∘   . 9The functions   and   do not depend on the node V  .This condition ensures not only that the branch sets of the hierarchical graph associated with the mesh are symmetrical as subgraphs but also that their geometric representation is symmetrical in the vector space  (before the application of the function   ).A special case of a hierarchically symmetric mesh, which may be called strongly hierarchically symmetric mesh, is given for   = Id and   = Id.
The SCNTs that will be constructed in the following sections can be described by hierarchically symmetric meshes.A graphene sheet, before being "rolled" into a tube, can be described as a strongly hierarchically symmetric mesh.

Iterative Construction.
In particular, the construction of each hierarchical order starts with the result of the construction of the preceding order, and the steps of the construction process of each hierarchical order are structurally identical, providing a generalized description of the construction process of the configurations of CNTs of arbitrary hierarchical order.The sequence of hierarchical orders is shown in Table 2. Figure 15 depicts the flow of algorithm for the construction of a super carbon nanotube of arbitrary order. 10 Interior subgraph Border subgraph (1) ( The hierarchically symmetric graph resulting from the operation () ∘  ∘   ∘  * ∘ () * , () = ⋃ 2 =1    Figure 16 illustrates the process of the construction of the mesh of a hierarchically structured CNT.In this example, a zigzag tube is created, which is characterized by a zigzag sequence of carbon atoms (or junctions, at higher orders) along the circumference of the tube.For each order, the starting point is the CNT (or SCNT) junction resulting from the construction of the structure at the preceding order.For the th level, we denote the respective junction by   .
However, as the initial structure for order 0 is the zero graph  0 =  = Γ({}, {}), many of the steps of the first iteration level do not explicitly show the full characteristics of the algorithm.For example, the junction  1 has three separate border node sets, each belonging to a branch of the junction.For the "junction"  0 , all these border node sets collapse to the zero graph.Thus, while Step 1(a) can be expressed as ) for each order , connecting two junctions by placing arcs between their respective border node sets, we have ) for order 0, in which a pair of arcs (representing an edge) is placed between two isolated nodes.
The following description will therefore generally refer to the situation for order 1 and above and provide some  additional remarks concerning the special case of the construction of the CNT of order 0.
We write S , ( 0 , ) for the -element group of rotations around  0 with rotation vector , S  ( 0 , ]) for the 2-element group of reflections about the plane defined by the reference point  0 and the normal vector ], and S , () for the element group of translations {  → +} −1 =0 with translation (2,3)   7 ⊗  4 B 0,3 )  Figure 16: Iterative construction of a hierarchically structured SCNT of arbitrary order.For arbitrarily large orders, the table can be thought of as extending to an infinite number of columns to the right.For any order ,  ⩾ 1, the initial structure is the result of the last step of order  − 1. Step 3(b) is followed by Step 3(c), which results in the junction shown in the first row of the second column.The graphs  3 and  4 are given as vector .The vector space  is generated by the orthonormal basis vectors (  ) 3 =1 .The length of  0  1 is the distance between two carbon atoms in a plane graphene sheet, and the length of    1 ,  ⩾ 1, is the distance between the rotational symmetry axes of two junctions in a plane CNT or SCNT sheet of order .
Initial Structure.The initial structure for each order , that is, the junction   , is the result of the construction process of the previous order (see Figure 16(i)).In particular, for order ,  ⩾ 1, it is the result of combining twelve graphene (or CNT) sheets  −1,2 (see Figures 16(g) and 16(o)).Each of these sheets contains a set of internal nodes, indicated by a leading node index of 1, and several border node sets, indicated by a leading node index greater than 1.However, only the node set indicated by the leading node index 4 remains a border node set after the construction of the junction   .As in each of the construction steps, an additional position is added to the node indices; the three border node sets of   are identified as {}× 4  0,3 = {}×{1, 2}×{1, 2}×{4}×⋅ ⋅ ⋅ ,  ∈ {1, 2, 3}. Figure 17 shows the junction of order 1 and the respective node sets.
Step 1.(a) In the first step (see Figure 16(j)), the junction   is being duplicated, resulting in the graph  2 ⊗  .Subsequently, arcs are being placed between the respective border node sets of the junctions, given by (1, 1) ×  4  −1,3 for the "left" junction and (2, 1) ×  4  −1,3 for the "right" junction.The trailing indices of two nodes that are being connected by this operation are identical; thus the additional arcs are given by ( ⃗  2 ⊗  (1,1)   7 ⊗  4  −1,3 ).Here, ⃗  2 indicates that the two junctions are being connected,  (1,1)   7 means that the "first" branch of each junction is being connected, and the expression  4  −1,3 indicates that only the nodes belonging to the border node set 4 are included in the operation.For the order 0 (see Figure 16(b)), the operation  2 ⊗  0 results in a one-dimensional graph, and thus the term ( ⃗  2 ⊗  (1,1)  ⊗  4  −1,3 ) collapses to ( ⃗  2 ).The symmetry group associated with this dimension of the graph is the reflection group S  ((1/2)   1 ,  1 ).
(b) The second part of the first step again duplicates the result of Step 1(a) and adds arcs between the respective node sets of the junctions, identified by the leading indices (1, 2, 2) and (2, 1, 3).Again, the expression describing the operation for order 0 is much simpler.The symmetry group associated with this dimension of the graph is the translation group S ,2 ((3/2)   1 + (1/2) √ 3   2 ).(See Figures 16(c) and 16(k).)(c) Subsequently, the junctions along the circumference of the resulting CNT (or super CNT) are created by replicating the result of the previous step.Choosing this direction with regard to the geometry of the structure created in the previous step results in the zigzag configuration, while choosing the orthogonal direction would result in the armchair configuration.This operation can be expressed as   ⊗  ,2 (shown in Figures 16(d) and 16(l) for  = 3).Again, arcs between the respective node sets of the junctions, identified by the leading indices (, 2, 1, 2) and ( + 1, 1, 2, 3), for 1 ⩽  < , are being added.If, instead of   , a cycle graph   is being used, then the last junction and the first junction are also joined by additional arcs, resulting in a ring that can be replicated by the operation described in Step 1(d) in order to obtain a CNT or a SCNT.The respective symmetry group is S , ( √ 3   2 ).
(d) The construction of a rectangular graphene (or CNT) sheet is completed by replicating the graphene (or CNT) ribbons resulting from the previous step along the length axes of the resulting CNT (or SCNT), resulting in  ribbons.As in the previous steps, the border node sets that must be connected by additional arcs are identified by their leading indices, and the expression is much simpler for the order 0. (See Figures 16(e) and 16(m).)The respective symmetry group is S , (3   1 ).
Step 2. For the construction of a junction of reasonable geometry, it is necessary to select a trapezoidal area of the graphene (or CNT) sheet produced in the previous step (see Figures 16(f) and 16(n)).A junction is composed of three branches, each of which consists of four base elements.As the branches intersect at an angle of 120 ∘ , trapezoidally shaped base elements with an angle of 60 ∘ at the rotational axis can be glued together without inducing major deformations of the base elements.Therefore, it is necessary to select the nodes that constitute the graph-based description of this area along with the arcs located between them.This can be done by first constructing a loop graph that connects each of the nodes belonging to the trapezoid area to itself, resulting in the graph D , and then performing the conjugation of the graph  ,4 with D , creating  ,1 = D ∘  ,4 ∘ D .The loop graph is obtained as the intersection of four loop graphs that consist of connected nodes on one half space of the node space and isolated nodes on the rest of the node space.As can be seen in Figure 16(n), the index combinations identifying the border node sets can be rather complicated.However, for all orders Journal of Nanomaterials Figure 18: Construction of  0,2 :  1 =  1 3 ⊗ ( 6 \  5  6 ) ∪ Γ 3 ((1, 3)) ⊗  5  6 and ⩾ 1, the eight leading indices are sufficient to identify the respective nodes, while for order 0 the first four indices are sufficient. 11The symmetry group associated with this step is the identity, as the geometric transformations of the positions of the nodes do not depend on the indices assigned to them.
Step 3. (a) In this step, two graphene sheets  ,1 are being combined to form the graphene sheet  ,2 .This step creates a symmetric structure (see Figures 16(g) and 16(o) and 18).The symmetry is described by the minor  1 = Γ 3 ({(1, 2), (2, 1), (3, 3)}), while the use of the transfer graph  1 =  1 3 ⊗ ( 6 \  5  6 ) ∪ Γ 3 ({(1, 3)}) ⊗  5  6 ensures that the border node set  5  ,1 is transferred to the invariant branch set of the graph, identified by the invariant node 3 of the cyclical rotation graph  1 .Both the transfer graph  1 and the minor  1 are being applied for the construction of  ,2 at all orders , while the graph  ,1 is of different dimension for each order .The invariance of the transfer graph  1 and the rotation graph  1 across orders is a result of the invariance of the symmetry operations across orders, which itself is a necessary consequence of the self-similarity of the overall structure of SCNTs.The symmetry group associated with this step is the reflection group S  (0,  3 ).
(b) Again, two configurations of the preceding step, that is,  ,2 , are being combined to create the junction branch  ,3 , a cylindrical structure (see Figures 16(h) and 16(p)).This procedure involves the same minor as the previous step and a three-dimensional transfer graph which moves the invariant node set of the resulting configuration, that is, the border node sets {1, 2} ×  3  ,1 , to the invariant branch set, identified by the leading index 3, of the resulting graph.As in Step 3(a), both the minor and the transfer graph are the same for all orders .The symmetry group associated with this step is the reflection group S  (0,  2 ).
(c) The construction of a junction of order  + 1 then concludes with a similar operation that combines the three branches of the junction into a rotationally symmetric configuration.(Note that there is no separate row in Figure 16 for this step, which transforms the result of Step 3(b) into the initial structure used for the construction of the subsequent order.)In addition to the rotation symmetry, the junction also exhibits reflection symmetries at the intersection of its branches.In order to capture all symmetries, the 4dimensional transfer graph  3 (see Figure 19) and the rotation graph  3 = ⃗  (1,2,3) ∪ ⃗  (4,5,6) ∪  7  7 are being used, resulting in the junction graph where () denotes the closure of a graph .For the construction of the junction, the associated symmetry group is the rotation group S ,3 (0,  3 ).

Implementation
6.1.Object-Oriented Code.The authors have implemented directed graphs and their functions, following the definitions of the graph algebra presented in this paper, as a set of MATLAB classes.The unary and binary operations for graphs (2, 3, 5) are thus available as methods of a class of graphs.The code of a number of elementary functions associated with the basic graph-algebraic method has been optimized, resulting in a computationally efficient implementation.Some additional functions, such as the creation of symmetrical graphs, have been implemented as high-level methods, allowing the user to focus on the characteristics of the structure rather than on identifying the relationships of indices.The methods implemented in the MATLAB classes do not presuppose any particular structure of the objects apart from those given by the graph algebra itself.In particular, no assumptions are made with regard to the sequence of elements in an array that stores the elements of a set.
The identification of each node by a tuple of indices, as opposed to a sequential numbering of the nodes, is essential for the efficient implementation of the graph algebra.In particular, the composition of graphs, which includes the identification of matching nodes in different graphs, is much faster if the comparison operation can be subdivided into comparison operations at each hierarchical level, that is, each position in the tuples identifying the nodes.6.2.Scaling.The speed and scaling characteristics of the method depend on both the size of the structure and the complexity of its hierarchy and symmetry characteristics.As the matching of nodes in the composition of graphs will be the computationally most expensive part of the process in most cases, the construction of configurations with a low relative number of nodes that form invariant subsets with regard to the graph homomorphisms underlying the graph's symmetry characteristics will generally be faster than the construction of configurations that have a large relative number of such nodes.
Hierarchically symmetric graphs form a large class of very diverse items.In addition to differences in the number of nodes, arcs, or edges, graphs may consist of different numbers of hierarchy levels, and they may exhibit few symmetries of large subgraphs or a large number of symmetries between smaller subgraphs.A description of the different characteristics and their influence on the efficiency and scaling of the implementation is thus outside the scope of this paper.In addition, while the MATLAB-based implementation has been optimized to some degree, so that it will probably not constitute the bottleneck in any workflow including mesh construction and numerical analysis, the elementary algorithms can be further optimized, and the functions can be adapted to the specific processor and memory characteristics.Programming languages such as FORTRAN or C would bring more control over elementary steps in the process, resulting in further optimization possibilities.
Super carbon nanotube structures, due to their rather complex hierarchical symmetries, can be used as a reference case to illustrate the basic characteristics of the implementation of the HGM method.We recall the basic sequence in the construction of a SCNT structure (see also Figure 20): (1) Start with the zero-dimensional graph.
(2) Repeat the following steps for each hierarchy order: (a) Construct a rectangular graphene (super-graphene) sheet from carbon atoms (CNT junctions) and cut out a trapezoid area, resulting in the base element of the respective hierarchy order, that is, the smallest element of the structure that does not have any global (graphtheoretic) symmetries.(b) Construct a CNT (SCNT) junction by applying symmetry operations to the trapezoid part of the graphene (super-graphene) sheet.
(3) Construct a rectangular graphene (super-graphene) sheet from carbon atoms (CNT junctions) and roll it into a SCNT.
Of these steps, step (2)(b), that is, the construction of the junction, includes graph compositions, which tend to be the most computationally expensive operations.In steps (2)(a) and ( 3), which generally take less time relative to the size of the configuration at the respective step, the union operation is the computationally most expensive operation.The scaling of the algorithm is also impacted by the presence of an overhead which becomes dominant for smaller configurations and an increase in memory-related operations as information needs to be stored farther away from the processor in the case of larger configurations.Thus, for super carbon nanotubes, the speed of the construction, that is, the calculation time relative to the size of the structure, measured as the number of arcs, reaches a minimum for mid-sized structures.
The following results have been obtained on Xeon E5620 CPU at 2.40 GHz, with 48 GB RAM installed on a Supermicro X8-DA3 mainboard.Each data point reflects the median of the results of six runs.

Mesh Generation.
The graph generated by the HGM method contains all information that is needed to describe the structure.However, in order to use the data in commonly used solvers and finite element calculation programs, the hierarchical description must be converted into a format that such programs can process.In most cases, this involves the calculation of an explicit description of the structure's geometry, that is, the coordinates of the nodes, the linear ordering of the nodes, that is, the conversion of their index tuples to a strictly totally ordered set, usually identified with sequential numbers, and the creation of a connectivity list (in this case, up to neighbors of third degree).Figure 21 depicts the sequence of step involved in the creation of a mesh with the HGM method.
Figure 22 depicts the computation speed for the construction of SCNT structures of order 2, comprising a few hundreds of thousands of arcs and about 6 million arcs.The structures vary in the length of the inner tubes, resulting in different counts of arcs in the respective structures.The fall in computation time per node can be attributed to the decreasing impact of the fixed overhead associated with the graph-algebraic functions, as the number of arcs processed in each elementary operation becomes larger.For larger structures, this effect is compensated by other factors, such as matching operations that, in general, do not scale linearly.
As the base elements are constructed first, the number of arcs, which enters into the denominator of the computational speed, is considerably lower in that step than in the construction of the junction.The creation of the tube includes, among other steps, the duplication of the junction elements.
As a large number of arcs are processed simultaneously in computationally inexpensive elementary graph-algebraic operations, it is the least computationally expensive step in the process.Figure 23 depicts the complete construction of the mesh for SCNT structures of order 2. In addition to the graph, that is, the node corridor and the set of arcs, the geometry and information needed for the conversion into a traditional mesh are being obtained from the graph.
As illustrated in Figure 23, the different parts of the process all display an approximately linear dependence on the total time to the size of the problem, given by the total number of arcs.This indicates that the hierarchical graph method is applicable over a wide range of sizes and is able to process structures characterized by complex hierarchies and symmetries in an efficient way.Nevertheless, one needs to keep in mind that the linear scaling reported here is the result of a number of factors.The actual scaling characteristics of a particular structure will be determined by the extent to which parts of the structure can be replicated at different hierarchy levels and by the share of "border nodes," that is, the nodes that are situated on the border between two parts of the structure that have been glued together during the construction process.
To the knowledge of the authors, there are no benchmark structures for the construction of graphs that could be used for the purpose of comparisons between algorithms and implementations.The large variety of possible structures, which would include different sizes, differences in overall complexity, extent of the hierarchy, and symmetry characteristic, makes it unlikely that a single concept or algorithm would be more efficient than others in all possible cases.The Hierarchical Graph Meshing (HGM) method presented here is capable of exploiting various forms of regularities to the extent that they exist in a given structure, while nonregular structures, or nonregular parts of a structure, may still be described by the common single-number index system, which would constitute a special case in the context of the HGM method.

Computational Efficiency and Complexity: A Comparison.
One particular advantage of the HGM method over other approaches, such as eliminating duplicate points, edges, or surfaces after creating a symmetric mesh by replicating the mesh of a smaller part of the structure, is the fact that all relevant information with regard to the connectivity of the structure is preserved at each step of the process.This obviates the need to use special methods that reconstruct such information when processing the resulting mesh.While such methods can be optimized by specific designs, such as divide-and-conquer algorithms, achieving good scaling characteristics is difficult without accessible knowledge about hierarchy and/or symmetry characteristics in a way that is much more accessible than a linear numbering scheme, the standard approach in mesh generation.This allows identifying nodes with particular properties (e.g., nodes that are located on a symmetry axis of the structure) by their respective combinations of indices.Symmetries are reflected by well-defined graph automorphisms, and, for structures that exhibit geometric symmetries in addition to structural symmetries, such automorphisms correspond to well-defined geometric symmetry groups.
The construction algorithm is based on a concise set of elementary algebraic graph operations, which can easily be organized into a modular process.Each characteristic of a hierarchical or symmetric structure corresponds to a specific step in the algorithm.Therefore, any single characteristic may be changed by modifying the parameters or the operations contained in a specific module.The modular character of the HGM method also makes it conducive to automatization.
The HGM method has been implemented as a MATLAB code.Test runs of the implementation show that the method is computationally efficient and scales clearly better than a geometry-based method employing a neighborhood search algorithm.For super carbon nanotube structures, the code scales linearly with the problem size, that is, the number of nodes and edges contained in the structure, and the speed-up reaches a factor of 10 3 and above for super carbon nanotubes of order 2. Super carbon nanotubes can be regarded as a reference case for hierarchically symmetric structures.The algorithm produces hierarchically symmetric meshes for different types of super carbon nanotubes of arbitrary order in an efficient and easily traceable way.
The conversion from a multi-index graph-based mesh to a mesh based on a linear ordering of nodes is computationally inexpensive, allowing the integration of the HGM method with common mesh-based programs and workflows.
The distributive law of the graph algebra applied in the HGM method allows for the description of graphs as the disjoint union of smaller graphs, which in turn can be written as categorical products.In this way, it is possible to obtain a standardized notation of graphs.As the factorization of the subgraphs allows for the elimination of redundant data in the description of the graph, the graph algebra employed in the HGM method can also be used to significantly reduce memory requirements.The details of this approach, however, must be left for further research at this point.

Endnotes
1.In contrast to [27,39,44] and others, however, the graph algebra used in the following exposition does not include an incidence function that maps arcs or edges to pairs of vertices.As a result, while vertices and arcs may be indexed, such an index system does not induce any particular ordering on the vertices or on the arcs.As a result, all graph automorphisms that, in the incidencebased graph structure, would simply change the ordering of nodes or edges are indistinguishable from the identity transformation, and any automorphism of a graph based on this structure can be identified with a node permutation.This also implies that the description of graph symmetries must refer to the node permutation itself, as the automorphism that describes a symmetry operation would itself always constitute an identity transformation.
this definition, a simple directed graph is given as  ≅ ( Ṽ, A), with A ⊆ Ṽ × Ṽ [39].With the isomorphism (cart(V), A) ≅ ({(V, V)}, A), we can identify simple directed graphs defined in this way with a subset of G (1) .
3. For the respective proofs, see Appendix A.1.
4. In general, however, the composition of a graph and its opposite,  * , is not the neutral element with regard to the composition of graphs.
5. For the respective proofs, see Appendix A.2.
6.We use the symbol  for both isomorphisms in general and for the special case of automorphisms, including permutations.
7. The notation   denotes the -fold consecutive application of the function .Symmetric graphs are also called transitive graphs [39, p. 157].
8. In addition to the geometry, a connectivity list can be created from the graph by composing it with itself, as the composition   contains the arcs of a graph  that connect neighbors of th degree.The case of more complicated finite elements is beyond the scope of this paper.
9. For translational symmetries, the isomorphism must exist between V  and a finite symmetry group on a cyclic space or a finite subset {  } −1 =0 ,  ∈   , of an (infinite) translation symmetry group on a noncyclic vector space.
10.The construction of a tube is quite similar to the construction of a base element and does not introduce any new elements to the construction method.Therefore, the elementary steps of this part of the construction are not described here.
11.Note that   * =   .This operation may be implemented either by defining infinite graphs, that is, graphs with an infinite number of nodes, or by defining a "selection" operation that eliminates the nodes and arcs outside of the trapezoidal area from the graph  ,4 .

TFigure 2 :
Figure 2: Symmetry characteristics.A super carbon nanotube exhibits multiple symmetries at each hierarchy level.

Figure 3 :
Figure 3: Combining symmetry characteristics in a hierarchical structure.

Figure 4 :
Figure 4: Commonly used sequential indexing and tuple-based indexing of the HGM method.

Figure 8 :
Figure 8: Composition and conjugation of undirected graphs.

Figure 13 :
Figure 13: Symmetries of hierarchically symmetric graphs.Isolated notes are omitted in the figures.

Figure 14 :
Figure 14: Construction of a hierarchically symmetric graph.Isolated notes are omitted in the figures.

Figure 15 :
Figure 15: Sequence of the iterative construction of a SCNT of arbitrary order.

Figure 19 :
Figure 19: Transfer graph  3 .The branch sets with leading indices 2, 3, and 5 all consist of isolated nodes and are not shown in this figure.

Figure 20 :
Figure 20: Sequence of the construction of a SCNT.

Figure 21 :
Figure 21: Sequence of the generation of a mesh with the HGM method.

Figure 22 :
Figure22: Construction of a SCNT of order 2. The outer level circumference is set to six hexagons and the outer length is set to eight zigzag rings (a) or two zigzag rings (b).The inner circumference is also held constant within each series.The inner length varies between two and seven (a) and four to nine (b) zigzag rings, respectively, resulting in different numbers of arcs in the respective structures.

Figure 23 :
Figure 23: Construction of the mesh of SCNTs of order 2. See the caption of Figure 22 for details on the characteristics (inner and outer circumferences and lengths) of the structures.
Figure 12: Hierarchically symmetric graphs. 3 denotes the complete graph with three nodes.

Table 2 :
Hierarchical structures based on carbon nanotubes.
a The respective graph is actually the zero-dimensional graph.