dumpAttr: Dump network attributes to a list

Description Usage Arguments Value Examples

Description

Given a network return a list of all the attributes.

Usage

1
2
3
4
5
6
7
8
9
  dumpAttr(x, ...)

  ## S3 method for class 'network'
 dumpAttr(x,
    type = c("all", "network", "vertex", "edge"), ...)

  ## S3 method for class 'igraph'
 dumpAttr(x,
    type = c("all", "network", "vertex", "edge"), ...)

Arguments

x

network object

type

character, type of attributes to dump

...

other arguments from/to other methods

Value

If type is one of "network", "vertex" or "edge" then a list of corresponding attributes.

If type is "all" then lists of lists of attributes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# using 'igraph' object
l <- dumpAttr( exIgraph )   # all attributes
identical( dumpAttr(exIgraph, "network"), l$network )
identical( dumpAttr(exIgraph, "vertex"), l$vertex )
identical( dumpAttr(exIgraph, "edge"), l$edge )

# using 'network' object
l <- dumpAttr( exNetwork )   # all attributes
identical( dumpAttr(exNetwork, "network"), l$network )
identical( dumpAttr(exNetwork, "vertex"), l$vertex )
identical( dumpAttr(exNetwork, "edge"), l$edge )

intergraph documentation built on May 2, 2019, 4:55 p.m.