Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Dynamically drag around the vertices of a graph
ResourceFunction["DragGraphVertices"][g] makes an interactive graphics of a graph g with draggable vertices. | |
ResourceFunction["DragGraphVertices"][Dynamic[g]] creates a dynamic control that modifies graph g. |
Drag around graph vertices:
| In[1]:= |
| Out[1]= | ![]() |
Modify an existing graph using Dynamic wrapper:
| In[2]:= |
| Out[2]= | ![]() |
| In[3]:= |
| Out[3]= | ![]() |
| In[4]:= |
| Out[4]= | ![]() |
DragGraphVertices accepts LocatorPane options:
| In[5]:= |
| Out[5]= | ![]() |
DragGraphVertices accepts Graph options:
| In[6]:= |
| Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License