cd_index

Contents

cd_index#

graph_tool.structure.cd_index(g, v, time, time_delta, weight=None)[git][source]#

Return the CD index of a vertex of a citation graph.

Parameters:
gGraph

Directed citation graph, with edges from the citing vertex to the cited one.

vVertex or int

Focal vertex.

timeVertexPropertyMap

Time of every vertex.

time_deltafloat

Length of the time window after the focal vertex.

weightVertexPropertyMap (optional, default: None)

Vertex weights of the citing vertices.

Returns:
cdfloat

The CD index, rounded to two decimals.

See also

graph_tool.centrality.pagerank

PageRank centrality

Notes

The CD index [funk-dynamic-2017] measures whether a work consolidates or disrupts its field. For the focal vertex \(v\) with time \(t_v\), it is

\[\mathrm{CD}_v = \frac{1}{|N_v|}\sum_{u\in N_v}\frac{b_u}{w_u},\]

where \(N_v\) is the set of vertices \(u\) with a time in the window \(t_v < t_u \le t_v + \Delta t\) (with \(\Delta t\) given by time_delta) that cite \(v\) or one of the vertices cited by \(v\); \(b_u = -1\) if \(u\) cites both \(v\) and one of the vertices cited by \(v\), \(b_u = 1\) if it cites \(v\) but none of them, and \(b_u = 0\) if it does not cite \(v\); and \(w_u\) is the weight of \(u\) (or one, if no weights are given). The time window applies to all vertices in \(N_v\), as in the reference implementation of the authors of [funk-dynamic-2017]. Without weights, it ranges from \(-1\) (consolidating) to \(1\) (disruptive) [park-papers-2023]. A ValueError is raised if \(N_v\) is empty.

References

[funk-dynamic-2017] (1,2)

Russell J. Funk and Jason Owen-Smith, “A dynamic network measure of technological change”, Management Science 63, 791-817 (2017), DOI: 10.1287/mnsc.2015.2366 [sci-hub, @tor]

[park-papers-2023]

Michael Park, Erin Leahey and Russell J. Funk, “Papers and patents are becoming less disruptive over time”, Nature 613, 138-144 (2023), DOI: 10.1038/s41586-022-05543-x [sci-hub, @tor]

Examples

>>> g = gt.Graph([(4, 0), (4, 1), (5, 0), (6, 1), (6, 2), (0, 3)])
>>> t = g.new_vp("double", vals=[2, 1, 1, 0, 3, 3, 3])
>>> print(gt.cd_index(g, 0, t, 5))
1.0