I need to add either a vertex or an edge to a graph, and also sometimes, vertices or edges, or a mixture of the two. How to write a function for this?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
The functions you need are For the graph
Adding a vertex
gives
Adding an edge
gives
Deleting an edge
gives
|
|||||||||||||
|




