View source: R/classify_milestone_network.R
classify_milestone_network | R Documentation |
Classify a milestone network
classify_milestone_network(milestone_network)
milestone_network |
A milestone network |
A list containing
network_type: The network type (also known as the trajectory_type). See dynwrap::trajectory_types
for an overview.
directed: Whether the trajectory is directed
properties: Different properties of the trajectory, including:
is_directed: Whether the trajectory is directed
max_degree: The maximal degree
num_branch_nodes: The number of branching nodes
num_outer_nodes: Number of leaf (outer) nodes
is_self_loop: Whether it contains self-loops
has_cycles: Whether it has cycles
num_components: The number of independent components
dynwrap::trajectory_types
milestone_network <- tibble::tibble(
from = c("A", "B", "C"),
to = c("B", "C", "A"),
length = 1,
directed = TRUE
)
classification <- classify_milestone_network(milestone_network)
classification$network_type
classification$directed
milestone_network <- tibble::tibble(
from = c("A", "B", "B", "C", "C"),
to = c("B", "C", "D", "E", "F"),
length = 2,
directed = FALSE
)
classification <- classify_milestone_network(milestone_network)
classification$network_type
classification$directed
classification$props
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.