Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

duplicatedEdges

duplicatedEdges


Description

A multigraph is a graph where edges between nodes can be represented several times. For some algorithms this causes problems. duplicatedEdges tests an instance of the graphNEL class to see if it has duplicated edges and returns TRUE if it does and FALSE otherwise.

Usage

duplicatedEdges(graph)

Arguments

graph

An instance of the class graphNEL

Details

It would be nice to handle other types of graphs.

Value

A logical, either TRUE if the graph has duplicated edges or FALSE it not.

Author(s)

R. Gentleman

See Also

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,

graph

graph: A package to handle graph data structures

v1.68.0
Artistic-2.0
Authors
R. Gentleman, Elizabeth Whalen, W. Huber, S. Falcon
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.