
Retrieve Neighboring Nodes in a Knowledge Graph
Source:R/get_neighboring_nodes.R
get_neighboring_nodes.RdReturns every node within degree_expansion hops of a node in the
tKOI knowledge graph, including the node itself.
Usage
get_neighboring_nodes(
gene_node_id,
degree_expansion,
subnetwork = tkoi::tkoi_net
)Arguments
- gene_node_id
A node ID (a vertex name of
subnetwork), for example a gene'sidingenes.- degree_expansion
Number of hops to expand.
1returns the node and its direct neighbors;2also returns their neighbors.- subnetwork
An igraph object to search. Default
tkoi::tkoi_net.
Details
The search uses igraph::ego() and ignores edge direction.