get_edge_features {rsemmed} | R Documentation

## Get information about edges

### Description

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

### Usage

    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

    data(g_mini)

    e_feat <- get_edge_features(g_mini)

[Package rsemmed version 1.0.0 Index]