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

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to