Biograph class does not allow adding of deleting nodes or edges.
Here is the way how to overcome this. Graph_man.zip contains four M-files:
node_add.m - add node to existing graph
node_del.m - delete node from existing graph
edge_add.m - add edge to existing graph
edge_del.m - delete edge from existing graph
Arsen Arakelyan (2022). Graph manipulation (https://www.mathworks.com/matlabcentral/fileexchange/37475-graph-manipulation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!