Detects connected components in a citation network and computes summary statistics for each component. Returns both the component information and an updated network with component labels.
Arguments
- net
A network object (tbl_graph or igraph) generated by
sniff_network()
Value
A list with two elements:
- components
A tibble with component statistics containing:
component
: Component identifier (e.g., "component01")quantity_publications
: Number of publications in componentaverage_age
: Mean publication year of component
- network
The input network with added component labels
Examples
if (FALSE) { # \dontrun{
# Create a network first
data <- read_wos("savedrecs.txt")
net <- sniff_network(data)
# Analyze components
result <- sniff_components(net)
# Access component information
result$components
# Get network with component labels
component_net <- result$network
} # }