node_topology

0th

Percentile

Node properties related to the graph topology

These functions calculate properties that are dependent on the overall topology of the graph.

Usage
node_dominator(root, mode = "out")

node_topo_order(mode = "out")

Arguments
root

The node to start the dominator search from

mode

How should edges be followed. Either 'in' or 'out'

Value

A vector of the same length as the number of nodes in the graph

Functions

Aliases
  • node_topology
  • node_dominator
  • node_topo_order
Examples
# NOT RUN {
# Sort a graph based on its topological order
create_tree(10, 2) %>%
  arrange(sample(graph_order())) %>%
  mutate(old_ind = seq_len(graph_order())) %>%
  arrange(node_topo_order())
# }
Documentation reproduced from package tidygraph, version 1.1.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.