Learn R Programming

NetworkInference (version 1.2.5)

count_possible_edges: Count the number of possible edges in the dataset

Description

Across all cascades, count the edges that are possible. An edge from node u to node v is only possible if in at least one cascade u experienced an event before v.

Usage

count_possible_edges(cascades)

Value

An integer count.

Arguments

cascades

Object of class cascade containing the data.

Examples

Run this code
data(cascades)
count_possible_edges(cascades)

Run the code above in your browser using DataLab