Compute Edge Difference Between Two Graphs
Usage
edge.diff(adj.list1, adj.list2)
Arguments
- adj.list1
First adjacency list.
- adj.list2
Second adjacency list.
Value
A list containing neighbors present in graph1 but not graph2 for
each vertex.
Examples
graph1 <- list(c(2L, 3L), 1L, 1L)
graph2 <- list(2L, 1L, integer(0))
edge.diff(graph1, graph2)
#> [[1]]
#> [1] 3
#>
#> [[2]]
#> integer(0)
#>
#> [[3]]
#> [1] 1
#>