[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] removing vertices from a graph

From: Eric Sun
Subject: [igraph] removing vertices from a graph
Date: Mon, 24 Aug 2009 15:52:23 -0700


I’m using igraph in R, and I’m trying to remove the vertex in a graph with the largest degree (or any indexed vertex).
Is there an easy way to do this?

The documentation talks about remove.graph.attribute(), but this appears to be only for the graph metadata.  I didn’t see any functions that allow removal of a vertex.

> degrees = degree(graph)
> which.max(degrees)
[1] 274731
> degrees[274731]
[1] 5232

I’d like to remove node #274731 and return the new graph.

Thanks in advance!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]