weight_scheme_count_deleted_nodes: Weight Number of Deleted Nodes Projection Scheme

weight_scheme_count_deleted_nodesR Documentation

Weight Number of Deleted Nodes Projection Scheme

Description

This weight scheme counts the number of deleted nodes for every pair of adjacent edges, and uses it as the projection edge weight.

Usage

weight_scheme_count_deleted_nodes(projected_graph)

Arguments

projected_graph

A semi-processed bipartite projection network resulting from bipartite_graph_projection when specifying weight_scheme_function = NA.

Details

For example, assume a graph which contains commit A and commit B. Additionally, assume file1, file2, and file3 to connect to commit A. And file2 and file3 to connect to commit B.

If we wish to know the co-change metric, i.e. how many times each pair of file were modified in the same commit, then we may obtain it by counting the number of deleted nodes.

In this example the edges (file1,file2), (file2,file3), and (file1,file3) receive a contribution of weight 1 from the deleted commit A, and (file2,file3) receive a contribution of weight 1 from the deleted commit B.

Thus, the weights would be (file1,file2) = 1, (file2,file3) = 2, and (file2,file3) = 1. In other words, in this example file2 and file3 have a co-change of 2, and the remaining pairs a co-change of 1.

See Also

Other weight_scheme: weight_scheme_cum_temporal(), weight_scheme_pairwise_cum_temporal()


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.