This repository is divided into two sections. The Experiments directory contains the source code for experiments 1 to 3. These experiments utilize NetworkX. The OBGL directory is a fork of SEAL_OGB with an additional implementation for the Heterogeneity Index, Homogeneity Index and the Jaccard Index. This set of evaluation utilizes PyTorch. Our article can be viewed and downloaded from https://arxiv.org/abs/2501.06721.
LinkPrediction.ipynb: calculates the average clustering coefficient and the link prediction AUC for a given graph using Heterogeneity Index, Homogeneity Index and the Jaccard Index
Exp1-2_InflectionRunner.ipynb: Calculates the average clustering coefficient, Jaccard Index, Heterogeneity Index, Homogeneity Index for different link formation probabilities
Exp3_GraphOrder.ipynb: Calculates the boundary for different graph sizes
rafie_model.ipynb: Alters a given graph
OGBConvert.ipynb: Converts OGBL npy objects to CSV edge list for link prediction
This section is a fork of SEAL_OGB. To use it, execute the following command:
python seal_link_pred.py --use_heuristic CN --dataset ogbl-ppa
You can change the value for the --use_heuristic argument with JC
for Jaccard Index, HI
for Heterogeneity Index, and HO
for Homogeneity Index. Moreover, you can change the value for --dataset
with existing datasets in this link (note that you should use undirected, unweighted graphs).
If you use our work in your research, please cite it as:
@misc{rafiepour2025effectaverageclusteringcoefficient,
title={On the effect of the average clustering coefficient on topology-based link prediction in featureless graphs},
author={Mehrdad Rafiepour and S. Mehdi Vahidipour},
year={2025},
eprint={2501.06721},
archivePrefix={arXiv},
primaryClass={cs.SI},
url={https://arxiv.org/abs/2501.06721},
}
OBGL directory:
Experiments Directory:
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.