R/graph_utils.R
rm.self.loops.Rd
Remove Self-Loops from an Adjacency List
rm.self.loops(adj.list)
Adjacency list.
The adjacency list with entries equal to their vertex index removed.
rm.self.loops(list(c(1L, 2L), c(1L, 2L))) #> [[1]] #> [1] 2 #> #> [[2]] #> [1] 1 #>