MakeLinkageGraph

MakeLinkageGraph[linkage, f]
returns a non-oriented graph object of linkage LinkageData and fills up the f link name mapping function.
  • MakeLinkageGraph creates a Graph object.
  • From Mathematica 8.0 MakeLinkageGraph returns the standard Graph objects instead of using the graph object of Combinatorica package.
  • The ordered pairs of the graph are the elements of the $LDStructure record of linkage.
  • The vertices of the graph are the links of the linkage.
  • The edges in the graph are the kinematic pairs (joints) of the linkage.
  • MakeLinkageGraph accepts all option of Graph function
  • If the closing constraints are not included into the resulted graph is the spanning tree of the complete graph.
  • The following main options can be specified
IncludeClosingConstraintsTrueloop closing kinematic pair to display or not
EdgeLabelsAutomaticName of the edges
VertexLabelsAutomaticName of the vertices
Load the LinkageDesigner package.
In[1]:=
Click for copyable input
This loads pre-defined LinkageData object of the crank-slider mechanism
In[2]:=
Click for copyable input
Out[2]=
This creates the complete graph object of the crank-slider mechanism, which contains also the loop closing kinematic pair
In[3]:=
Click for copyable input
Out[3]=
This creates the spanning tree of the crank-slider mechanism, which does not contains the loop closing kinematic pair
In[4]:=
Click for copyable input
Out[4]=
The mapping of the vertex integers and the corresponding link name is defined with g1 mapping function.
In[5]:=
Click for copyable input
Out[5]//TableForm=
In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=
The g1 mapping function stores useful Information about the graph, which could be used to enhance the visualization.
In[8]:=
Click for copyable input
Out[8]=
In[9]:=
Click for copyable input
Out[9]=
In[10]:=
Click for copyable input
Out[10]=
Plot the complete graph of the crank-slider mechanism with the link name vertex labels.
In[11]:=
Click for copyable input
Out[11]=
Highlight the cut set of the graph
In[12]:=
Click for copyable input
Out[12]=
Plot the spanning tree of the crank-slider mechanism's graph with the link name vertex labels.
In[13]:=
Click for copyable input
Out[13]=