[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Edge degree
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] Edge degree |
Date: |
Mon, 2 Nov 2009 19:49:07 +0000 |
Hi Colin,
I am interested in calculating 'edge degree' (perhaps this is more
typically called something else?). By edge degree I mean the sum of
the degree of the nodes on the ends of an edge.
A quick-and-dirty solution:
> deg <- degree(g)[get.edgelist(g)]
> m <- ecount(g)
> edge_degrees <- deg[1:m*2]+deg[1:m*2-1]
There might be an easier solution, though.
--
Tamas