R/utils.R

Defines functions .original_graph_nodes

library(igraph)

# Utility function that retrieves just the original nodes.
# These were marked with a `'` at the end of their name.
# Avoid node names that have that marking, thus.
# They will be returned in the original order, too.

.original_graph_nodes <- function( dup.graph ) {

  return( V(dup.graph)[ !grepl("'$", V(dup.graph)$name) ] )
}

Try the dupNodes package in your browser

Any scripts or data that you put into this service are public.

dupNodes documentation built on June 22, 2024, 7:03 p.m.