get_edge_features: Get information about edges

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Search for nodes by name using regular expressions or which match given semantic types. Perform anti-matching by setting match = FALSE.

Usage

1
2
3
4
5
6
get_edge_features(
    graph,
    include_degree = FALSE,
    include_node_ids = FALSE,
    include_num_instances = FALSE
)

Arguments

graph

The SemMed graph

include_degree

If TRUE, include information on head/tail node degrees.

include_node_ids

If TRUE, include the ID numbers of head/tail nodes.

include_num_instances

If TRUE, include information on the number of times a predication was observed in the Semantic MEDLINE database.

Value

A tbl where each row corresponds to an edge in the Semantic MEDLINE graph. The ordering of the rows corresponds to E(graph). Features (columns) always returned include the name and semantic type of the head (subject) and tail (object) nodes.

See Also

make_edge_weights for using this data to construct edge weights

Examples

1
2
3

lmyint/rsemmed documentation built on July 26, 2021, 1:20 a.m.