unique.mathgraph {mathgraph}R Documentation

Unique Edges of a Mathematical Graph

Description

Returns a mathgraph object that may have fewer edges than the input.

Usage

## S3 method for class 'mathgraph':
unique(x, incomparables = FALSE, ...)

Arguments

x an object that inherits from mathgraph.
incomparables a vector of values that cannot be compared. The only possible value is FALSE, meaning that all values can be compared.
... other arguments for generic function.

Value

An object that is the same class as the input x, but redundant edges are removed.

Author(s)

Nick Efthymiou

References

S Poetry, Patrick J. Burns, Section 13.3

See Also

mathgraph

Examples

unique( c(mathgraph(~ 1:2*2:3), mathgraph(~ 1/3)) )

[Package mathgraph version 0.9-8 Index]