Skip to main content

Create a co-citation graph from a list of papers

Project description

Co-citation graph generator

REUSE status pipeline status PyPI version

Generate a co-citation graph from an article list in two steps:

  1. Get the references of each article and their corresponding journals
  2. Generate the co-citation pairs and add them the graph. The weights are the number of times the journals are co-cited.

Example

from co_citation import CoCitation

cites = CoCitation(
    [
        "arxiv:1602.05112",
        "pubmed:8113053",
        "sciencedirect:S0167923610001703",
        "scopus:10.1016/j.cmet.2020.11.014",
    ],
    data_type="journal", # or "article", "institution"
    wait=None, # None or the time to wait between requests (in seconds)
    retries=None, # None or the number of retries for HTTPS requests
    first_last_author=False, # Set to True to only get the institution of the first and last authors
    node_weights="eigenvector", # Or "betweenness"
)
cites.write_graph_edges("graph")
cites.plot_graph(
    display=False,
    k=10, # The spacing between the nodes
    seed=42, # Use the seed argument for reproducibility
    margin=dict(b=0, l=110, r=150, t=40)
)

Documentation

See the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for co-citation, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size co_citation-0.7-py3-none-any.whl (20.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size co-citation-0.7.tar.gz (22.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page