java.lang.Object
es.uam.eps.ir.relison.examples.links.recommendation.evaluation.GraphMetricsEvaluation

public class GraphMetricsEvaluation
extends java.lang.Object
Class for analyzing the properties of a graph after adding the outcome of a contact recommendation / link prediction algorithm.
  • Constructor Summary

    Constructors 
    Constructor Description
    GraphMetricsEvaluation()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)
    Program which analyzes the different properties of a graph.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Program which analyzes the different properties of a graph.
      Parameters:
      args - Execution arguments
      1. Train: Route to the file containing the training graph.
      2. Test: Route to the file containing the test links.
      3. Multigraph: true if the network allows multiple edges, false otherwise.
      4. Directed: true if the network is directed, false otherwise.
      5. Weighted: true if the network is weighted, false otherwise.
      6. Selfloops: true if the network allows self-loops, false otherwise.
      7. Rec. directory: directory containing the recommendations.
      8. Grid: Route to a YAML file containing the structural metric configurations.
      9. Output file: File in which to store the structural metrics.
      10. Rec. Length: Maximum number of recommendations per user to consider.
      11. Full graph: if true, it uses all the edges/pairs of users in the networks. If false, only the recommended ones.
      12. Only relevant: true if we only add to the original network only those correctly recommended links, false otherwise.
      Throws:
      java.io.IOException - if something fails while reading / writing.