get.edges.intersection {dynamicnetwork}R Documentation

finds edges in second network that are also in the first

Description

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.

Usage

get.edges.intersection(network1, network2)

Arguments

network1 first network to compare
network2 second network to compare, edge ids returned will be fore this network

Details

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.

Value

Vector of edgeids in the second network that have matches in the first.

Author(s)

Skye Bender-deMoll skyebend@skyeome.net

References

~put references to the literature/web site here ~

See Also

get.edges.difference

Examples

 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)

[Package dynamicnetwork version 0.0-4 Index]