You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checking if child has more than 2 parents in their network
Find in-degree and out-degree of a graph: igraph::degree(..., mode='in') In-degree should be at most two. Out-degree is the number of children born to an individual.
checking if there are cycles in the data (aka is a parent's child the parent's parent? aka is it recurvise)
Detect cycles: igraph::is_dag() function? These are cases when e.g. a parent is the child of a child. Maybe igraph::is_acyclic() would be better? Either of these returns a logical TRUE/FALSE. A subsequent step is to find the paths that are creating the cycles. See igraph::feedback_arc_set() for finding the edges that -- if pruned -- would kill the cycles.
Duplicate edges could be found with igraph::which_multiple().
The igraph::topo_sort() function might be a quick alternative for generation number. See #28 .
Additional data checks we can implement include,
The text was updated successfully, but these errors were encountered: