get.edges.intersection {dynamicnetwork} | R Documentation |
Given two networks, returns a vector of edgeIDS for edges in the second network that have a corresponding edge in the first network. Mostly used for comparing the same network at two points in time to find the edges that have not changed.
get.edges.intersection(network1, network2)
network1 |
first network to compare |
network2 |
second network to compare, edge ids returned will be fore this network |
Uses the get.matching.edgeIDs
function to find edges in both
networks that have the same head and tail sets. Returns the ids of all edges
in the second network have a match in the first.
Vector of edgeids in the second network that have matches in the first.
Skye Bender-deMoll skyebend@skyeome.net
~put references to the literature/web site here ~
library(sna); #make two random graphs graph1 <- as.network(rgraph(10)); graph2 <- as.network(rgraph(10)); #find the edges in graph2 that are not in graph 1 diff <- get.edges.intersection(graph1,graph2)