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.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI 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.
Graph
, then you could take itsVertexList
and remove the node you want and then applySubgraph[g,newVertices]
. $\endgroup$ – halirutan♦ May 9 '17 at 3:32