getEdges | R Documentation |
The function getEdges
returns the edges of a gGraph
object using different possible outputs.
getEdges(x, ...)
## S4 method for signature 'gGraph'
getEdges(x, res.type = c("asIs", "matNames", "matId"), unique = FALSE, ...)
x |
a valid gGraph. |
... |
other arguments passed to other methods (currently unused). |
res.type |
a character string indicating which kind of output should be used. See value. |
unique |
a logical indicating whether all returned edges should be unique (TRUE) or if duplicated edges should be allowed (TRUE, default). |
The output depends on the value of the argument res.type
:
asIs
: output is a named list of nodes, each slot containing nodes
forming an edge with one given node. This format is that of the edges
accessor for graphNEL objects.
matNames
: a matrix with two columns giving couples of node names
forming edges.
matId
: a matrix with two columns giving couples of node indices
forming edges.
getEdges(gGraph)
: Method for gGraph objects
Most other accessors are documented in gGraph
manpage.
See setEdges
to add/remove edges, or
geo.add.edges
and geo.remove.edges
for
interactive versions.
example(gGraph)
getEdges(x)
getEdges(x, res.type = "matNames")
getEdges(x, res.type = "matId")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.