View source: R/graphfunctions.R
duplicatedEdges | R Documentation |
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.
duplicatedEdges(graph)
graph |
An instance of the class |
It would be nice to handle other types of graphs.
A logical, either TRUE
if the graph has duplicated edges or
FALSE
it not.
R. Gentleman
connComp
, ugraph
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.