| get_edge_features {rsemmed} | R Documentation |
Search for nodes by name using regular expressions or which match given
semantic types. Perform anti-matching by setting match = FALSE.
get_edge_features(
graph,
include_degree = FALSE,
include_node_ids = FALSE,
include_num_instances = FALSE
)
graph |
The SemMed graph |
include_degree |
If |
include_node_ids |
If |
include_num_instances |
If |
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.
make_edge_weights for using this data to
construct edge weights
data(g_mini) e_feat <- get_edge_features(g_mini)