Accessors for fetching slots from a GraphSpace object
Source:R/gspace-methods.R
getGraphSpace-methods.RdgetGraphSpace retrives information from
individual slots available in a GraphSpace object.
Arguments
- gs
A preprocessed GraphSpace class object
- what
A single character value specifying which information should be retrieved from the slots. Options: 'graph','gxy','gxyz','pars','misc','status','summits', 'summit_mask', and 'summit_contour'.
Value
Content from slots in the GraphSpace object.
Examples
# Load a demo igraph
data('gtoy1', package = 'RGraphSpace')
# Create a new GraphSpace object
gs <- GraphSpace(gtoy1)
#> Validating the 'igraph' object...
#> Creating a 'GraphSpace' object...
# Get the 'summary' slot in gs
getGraphSpace(gs, what = 'graph')
#> IGRAPH d6f4f35 DN-- 5 4 --
#> + attr: x (v/n), y (v/n), name (v/c), nodeLabel (v/c), nodeLabelSize
#> | (v/n), nodeLabelColor (v/c), nodeShape (v/n), nodeSize (v/n),
#> | nodeColor (v/c), nodeLineWidth (v/n), nodeLineColor (v/c), nodeAlpha
#> | (v/n), edgeLineType (e/c), edgeLineColor (e/c), edgeLineWidth (e/n),
#> | arrowType (e/n), edgeAlpha (e/n)
#> + edges from d6f4f35 (vertex names):
#> [1] n1->n2 n1->n3 n1->n4 n1->n5