Objects from the Class
Objects can be created by calls of the form new("undirectedEdge", ...)
which admit short-hands of the form u(...).Slots
.Data:- Object of class
"vector"
storing strictly positive numbers that refer to a given "vertexSet" object
Extends
Class "edge", directly.
Class "integer", from data part.
Class "vector", by class "integer".
Class "numeric", by class "integer".Methods
- initialize
signature(.Object = "undirectedEdge"):
constructs an undirected edge from a vector of strictly positive integers - show
signature(object = "undirectedEdge"):
displays an undirected edge as numbers joined by lines - showRel
signature(object = "undirectedEdge",code="vertexSet"):
displays an undirected edge as names joined by lines - areTheSame
signature(x = "undirectedEdge", y = "undirectedEdge"):
x and y are the same undirected edge if they are the same set of numbers - [
signature(x = "undirectedEdge"): extracts an undirected edge - coerce
signature(from = "vector", to = "undirectedEdge"): constructs an undirected edge from vector input - coerce
signature(from = "directedEdge", to = "undirectedEdge"): makes a directed edge undirected - maxId
signature(x="undirectedEdge"): gets the maximum numeric identifier of an undirected edge - recode
signature(object = "undirectedEdge",src="vertexSet",dst="vertexSet"):
recodes an undirected edge by making its numbers refer to another "vertexSet" object
Warning
The constructor will try to handle any vector input
by silently transforming it into a list of strictly positive integers.