Skip to content

C++ programs for computing the CD index as described by Funk and Owen-Smith (2017)

Notifications You must be signed in to change notification settings

rfunklab/edgraph_v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

edgraph_v1

This repository contains a C++ library and example program for computing the CD index (as introduced by Funk and Owen-Smith, 2017, see http://www.cdindex.info for more information) and a few related measures.

Compiling and running

The code only uses the Standard Template Library so it should compile very easily with your favorite C++ compiler, e.g.

g++ main.cpp edgraph.cpp -o edgraph

You can then run edgraph as follows.

./edgraph vertices.csv edges.csv results.txt

where vertices.csv is a csv file with two columns, one for the (integer) identifier for each vertex, edges.csv is an edge list, formatted as a csv file, with two columns, one for the "citing" and one for the "cited" vertex.

Notes

That this library was written before the final publication of the paper, and uses slightly different terminology ("disruptiveness" -> "CD index", "disruptive" -> "destabilizing", "amplifying" -> "consolidating", "radicalness" -> "mCD index").

Also note that this code was written by Funk ages ago, and while potentially useful, is not really actively maintained, though he is generally happy to answer questions (rfunk@umn.edu). There is more recent C/Python package available here.

About

C++ programs for computing the CD index as described by Funk and Owen-Smith (2017)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages