graph_from_schedule: Convert Continuous-Time Movement Descriptions to Network...

View source: R/graph_from_schedule.R

graph_from_scheduleR Documentation

Convert Continuous-Time Movement Descriptions to Network Graph

Description

Takes a list of continuous-time movement descriptions for each individual in a network and returns an undirected, weighted 'igraph' graph where edge weights are the proportion of time a dyad spent co-located at a patch.

Usage

graph_from_schedule(schedule)

Arguments

schedule

object from simulate_schedule()

Value

an undirected, weighted 'igraph' graph

Examples


obj <- simulate_schedule(n_animals = 15,
                         n_groups = 3,
                         time_to_leave = 5,
                         time_to_return = 2,
                         travel_time = c(0.001, 0.2),
                         sampling_duration = 20,
                         simulator = "independent")
g <- graph_from_schedule(schedule = obj)


gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.