graph_data: Graph data

Description Usage

View source: R/graph.R

Description

Arbitrary metadata can be attached to graphs, nodes, and edges. By default, the data is a named list of attributes (key-value pairs).

Usage

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

graph_data(g) <- value

graph_attr(g, key)

graph_attr(g, key) <- value

node_data(g, node)

node_data(g, node) <- value

node_attr(g, node, key)

node_attr(g, node, key) <- value

edge_data(g, src, tgt, ...)

edge_data(g, src, tgt, ...) <- value

edge_attr(g, src, tgt, ..., key)

edge_attr(g, src, tgt, ..., key) <- value

IBM/rflowgraph documentation built on Sept. 12, 2019, 7:45 p.m.