Co-citation graph generator
Generate a co-citation graph from an article list in two steps:
- Get the references of each article and their corresponding journals
- 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.
Metadata
Release files for co-citation 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| co-citation-0.7.tar.gz | 22.1 kB | Without provenance | Details for co-citation-0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| co_citation-0.7-py3-none-any.whl | Python 3 | none | any | Details for co_citation-0.7-py3-none-any.whl |
Total release size: 42.5 kB
Release files / co-citation-0.7.tar.gz
| Download URL | co-citation-0.7.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d45b061306ef7705adf53f38e89a44ee690363f56155092201ecfa5e4a8aef83
|
|
BLAKE2b-256 checksum How to use checksums |
d2f71474e4d9b404e8d9fbfa951a5c697ff4dfa24514be17c3c025c588b8f574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / co_citation-0.7-py3-none-any.whl
| Download URL | co_citation-0.7-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57dc4d5a97d0a457d4b138248c676fdd0c8fe373f25181d4ff8f16112d654d07
|
|
BLAKE2b-256 checksum How to use checksums |
44ffa36ec65bb0321148e509089208066ddbbcc35a9bb11b67312b5e35045f37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for co-citation 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.