igraph-help
[Top][All Lists]
Advanced

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

[igraph] filter graph based on degree + x, y coordinates has node attrib


From: Ryanne Turenhout
Subject: [igraph] filter graph based on degree + x, y coordinates has node attributes
Date: Thu, 15 Nov 2012 16:15:53 +0100

Hi everyone,

I want to filter a graph that I made. If a vertex has a degree 1 and is connected to another vertex who has also got degree 1 -> delete both vertices (and also the corresponding edge).

But if a vertex has a degree 1 and is connected to a vertex with degree > 1 do not delete the vertex.

I just cannot figure out how to do this, been working on it for a while now. I tried clustering but it just gives me 26 clusters (???). I have a graph of 26 nodes / 17 edges, just a small sample from my database.

Second,
I want to layout the graph but I want to add the coordinates as attributes to the nodes instead of plotting it as an image file. How to go about this? I cannot find any examples.

Any help would be much appreciated.

Best,
Ryanne

reply via email to

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