Learn R Programming

giRaph (version 0.1.2)

edgeList-class: Class "edgeList"

Description

Class for multi-sets of edges

Arguments

Objects from the Class

Objects can be created by calls of the form new("edgeList", ...).

Slots

.Data:
Object of class "list" whose elements are of class "edge"

Extends

Class "list", from data part. Class "vector", by class "list".

Methods

initialize
signature(.Object = "edgeList"): constructs a multi-set of edges from a list of edges
show
signature(object = "edgeList"): dispalys a multi-set of edges in graph brackets (numeric codes)
showRel
signature(object = "edgeList",code="vertexSet"): dispalys a multi-set of edges in graph brackets (character names
areTheSame
signature(x = "edgeList", y = "edgeList"): x and y are the same multi-set of edges if they contain the same edges with the same multiplicity
isPresent
signature(el = "edge", ou = "edgeList"): tells whether an edge belongs to a multi-set of edges
[
signature(x = "edgeList"): extracts a multi-set of edges
+
signature(e1 = "edgeList", e2 = "edge"): adds an (occurrence of an) edge to a multi-set of edges
+
signature(e1 = "edge", e2 = "edgeList"): adds an (occurrence of an) edge to a multi-set of edges
-
signature(e1 = "edgeList", e2 = "edge"): drops (the first occurrence of) an edge from a multi-set of edges
maxId
signature(x="edgeList"): gets the maximum numeric identifier of a multi-set of edges
recode
signature(object = "edgeList",src="vertexSet",dst="vertexSet"): recodes a multi-sets of edges by making the numbers of its edges refer to another "vertexSet" object
coerce
signature(from = "list", to = "edgeList"): constructs a multi-set of edges from list input

Warning

All non-edge elements of the input list are silently discarded by the constructor.

See Also

edge-class, undirectedEdge-class and directedEdge-class.