a small set of graph functions to be used from pySpark on top of networkx and graphframes
Project description
splink_graph
splink_graph
is a small graph utility library meant to be used in the Apache Spark environment, that works with graph data structures
such as the ones created from the outputs of data linking processes (candicate pair results) of
The main aim of splink_graph
is to offer a small set of functions that work on top of established graph packages like graphframes
and networkx
, that can help with the process of graph analysis of the output of probabilistic data linkage tools.
Functionality offered
For a primer on the terminology used please look at TERMINOLOGY.md file in this repo
Cluster metrics
Cluster metrics usually have as an input a spark edgelist dataframe that also includes the component_id (cluster_id) where the edge is in. The output is a row of one or more metrics per cluster
Cluster metrics currently offered:
- diameter
- transitivity
- triangle clustering coeff
- square clustering coeff
- graphhash
- node connectivity
- edge connectivity
- cluster efficiency
- cluster modularity
- cluster avg edge betweenness
- cluster weisfeiler lehman graphhash
Cluster metrics are really helpful in finding the needle (of clusters with possible linking errors) in the haystack (whole set of clusters)
Node metrics
Node metrics have as an input a spark edgelist dataframe that also includes the component_id (cluster_id) where the edge is in. The output is a row of one or more metrics per node
Node metrics curretnly offered:
- Eigenvector Centrality
- Harmonic centrality
Edge metrics
Edge metrics have as an input a spark edgelist dataframe that also includes the component_id (cluster_id) where the edge is in. The output is a row of one or more metrics per edge
Edge metrics curretnly offered:
- Edge Betweeness
- Bridge Edges
Contributing
Feel free to contribute by
- Forking the repository to suggest a change, and/or
- Starting an issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file splink_graph-0.4.1.tar.gz
.
File metadata
- Download URL: splink_graph-0.4.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.7.6 Linux/4.9.0-7-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a34b1aa57bd6fd66c6ceb65ceefbc7368dc585be40318251dfd7a69439e43b7 |
|
MD5 | 0a796231cb57d3a0cba1bb565f3ee6cd |
|
BLAKE2b-256 | 4339ff5c741b3d3a170d8971fea80753cd193aeeb0cd27058d77d81e0eaf2ef7 |
File details
Details for the file splink_graph-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: splink_graph-0.4.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.7.6 Linux/4.9.0-7-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 565137720c3bcd4a91b65835417923a3f1161bdac3e78d904120d0225a214c6b |
|
MD5 | 3d53da4cc2cd672ec99a6e49532e0d62 |
|
BLAKE2b-256 | 0402b856ea7f6eda3bed4e20f1c316a0cdd39f67ccbdc6c569c437aeb07bdd34 |