I want to extract a couple of nodes from a graph to study its robustness. I would do it manually, eliminating from the list of connections the ones that include the particular node, but the list es very long.

  • 3
    $\begingroup$ If you have a Graph, then you could take its VertexList and remove the node you want and then apply Subgraph[g,newVertices]. $\endgroup$
    – halirutan
    May 9 '17 at 3:32

You can delete nodes using VertexDelete.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.