Load the LinkageDesigner package.
This loads pre-defined LinkageData object of the crank-slider mechanism
This creates the complete graph object of the crank-slider mechanism, which contains also the loop closing kinematic pair
This creates the spanning tree of the crank-slider mechanism, which does not contains the loop closing kinematic pair
The mapping of the vertex integers and the corresponding link name is defined with g1 mapping function.
The g1 mapping function stores useful Information about the graph, which could be used to enhance the visualization.
Plot the complete graph of the crank-slider mechanism with the link name vertex labels.
Highlight the cut set of the graph
Plot the spanning tree of the crank-slider mechanism's graph with the link name vertex labels.