Network-class: Network

Network-classR Documentation

Network

Description

A class for representing networks. A network is composed of nodes and links (edges, connections, etc.). A link is represented as a pair of nodes, with optional attributes such as weight (see Link). To represent a network, we need both the list of links in the network and a list of nodes in case some nodes have no links. A network can also have properties such as directedness, levels, colors, etc. (coming soon).

Slots

links

LinkList object defining the links in the network.

nodes

NodeList object defining the nodes in the network. Some nodes may not have any links.

linkColorScheme

string defining the type of coloring scheme the links follow. Options are 'none' (default) and 'posneg'. In the case of 'posneg', the links color slot will be set to 1 if the link is positive, and -1 if the link is negative. Use a method assignLinkColors() to assign colors to links and set this slot's value.

variableMapping

veupathUtils::VariableMetadataList object defining the variable mappings in the network.


VEuPathDB/plot.data documentation built on Feb. 20, 2025, 6:33 p.m.