refersTo: Name of the property of an aspect that is an ID

Description Usage Arguments Details Value Methods (by class) See Also Examples

Description

This function returns the name of the property and the aspect class it refers to. As example, the aspect EdgesAspect has the property source that refers to the ids of the NodesAspect aspect.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
refersTo(aspect)

## Default S3 method:
refersTo(aspect)

## S3 method for class 'EdgesAspect'
refersTo(aspect)

## S3 method for class 'NodeAttributesAspect'
refersTo(aspect)

## S3 method for class 'EdgeAttributesAspect'
refersTo(aspect)

## S3 method for class 'CartesianLayoutAspect'
refersTo(aspect)

## S3 method for class 'CyGroupsAspect'
refersTo(aspect)

## S3 method for class 'CyVisualPropertiesAspect'
refersTo(aspect)

## S3 method for class 'CySubNetworksAspect'
refersTo(aspect)

Arguments

aspect

an object of one of the aspect classes (e.g. NodesAspect, EdgesAspect, etc.)

Details

Uses method dispatch, so the default return is NULL and only aspect classes that refer to other aspects are implemented. This way it is easier to extend the data model.

Value

named list; Name of the refering property and aspect class name.

Methods (by class)

See Also

hasIds(), idProperty(), referedBy(), maxId()

Examples

1
2
edges = createEdges(source = c(0,0), target = c(1,2))
refersTo(edges)

frankkramer-lab/RCX documentation built on July 14, 2021, 6:33 p.m.