Learn R Programming

giRaph (version 0.1.2)

wrappers: Short-hands for vertex set and edge construction

Description

Provide short-hands for vertex set and edge construction.

Usage

v(...) u(...) d(...) r(...)

Arguments

...
unique vertex identifiers (should be characters for v and strictly positive integers for u,d and r)

Value

Function v returns an object of class "vertexSet". Function u returns an object of class "undirectedEdge". Both functions d and r return an object of class "directedEdge".

Details

Function d builds a directed edge from tail to head, function r builds a directed edge from head to tail.

See Also

vertexSet-class, undirectedEdge-class and directedEdge-class.