remove_duplicate_edges: Remove duplicate edges

View source: R/mutilate.R

remove_duplicate_edgesR Documentation

Remove duplicate edges

Description

Remove duplicate edges

Usage

remove_duplicate_edges(edges, directed = TRUE, sort = FALSE)

Arguments

edges

something from edgeList object

directed

are edges directed? (i.e. does the order of vertices matter?)

sort

should vertices in undirected edges be sorted as a side-effect of the function? (list form only)

Check for and remove duplicate edges in a list of edges or edgeMatrix. Note that this will sort elements in eList objects.


rje42/MixedGraphs documentation built on March 20, 2024, 8:09 a.m.