Learn R Programming

mathgraph (version 0.9-14)

unique.mathgraph: Unique Edges of a Mathematical Graph

Description

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

Usage

# S3 method for 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.

References

S Poetry, Patrick J. Burns, Section 13.3

See Also

mathgraph

Examples

Run this code
# NOT RUN {
unique( c(mathgraph(~ 1:2*2:3), mathgraph(~ 1/3)) )
# }

Run the code above in your browser using DataLab