Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Add a cycle graph to an existing graph
ResourceFunction["CycleAdd"][g,v] adds a cycle graph, generated from the specified vertices v, to the graph g. |

Add a cycle to a graph:
| In[1]:= | ![]() |
| Out[1]= | ![]() |
Works with undirected graphs:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
Directed graphs:
| In[3]:= | ![]() |
| Out[3]= | ![]() |
Multigraphs:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
Mixed graphs:
| In[5]:= | ![]() |
| Out[5]= | ![]() |
And rules to specify the graph:
| In[6]:= |
| Out[6]= | ![]() |
Use already existing vertices to form the cycle:
| In[7]:= | ![]() |
| In[8]:= | ![]() |
Use any kind of vertex to form the cycle:
| In[9]:= | ![]() |
| Out[9]= | ![]() |
Specify an annotation for vertices:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
Edges:
| In[11]:= | ![]() |
| Out[11]= | ![]() |
Highlight vertices:
| In[12]:= | ![]() |
| Out[12]= | ![]() |
Highlight edges:
| In[13]:= | ![]() |
| Out[13]= | ![]() |
Highlight vertices and edges:
| In[14]:= | ![]() |
| Out[14]= | ![]() |
Use a common base theme:
| In[15]:= | ![]() |
| Out[15]= | ![]() |
Use a monochrome theme:
| In[16]:= | ![]() |
| Out[16]= | ![]() |
By default, the size of vertices is computed automatically:
| In[17]:= | ![]() |
| Out[17]= | ![]() |
Specify the size of all vertices using symbolic vertex size:
| In[18]:= | ![]() |
| Out[18]= | ![]() |
Specify the size for individual vertices:
| In[19]:= | ![]() |
| Out[19]= | ![]() |
Style all vertices:
| In[20]:= | ![]() |
| Out[20]= | ![]() |
Style individual vertices:
| In[21]:= | ![]() |
| Out[21]= | ![]() |
Generate the cycle graph of given list of vertex:
| In[22]:= |
| Out[22]= | ![]() |
Find the circle graph of consecutive letters in a phrase:
| In[23]:= | ![]() |
| Out[23]= | ![]() |
Find the circle graph of consecutive words in a phrase:
| In[24]:= | ![]() |
| Out[24]= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License