Class GraphMetricsEvaluation
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.
-
Constructor Details
-
GraphMetricsEvaluation
public GraphMetricsEvaluation()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionProgram which analyzes the different properties of a graph.- Parameters:
args
- Execution arguments- Train: Route to the file containing the training graph.
- Test: Route to the file containing the test links.
- Multigraph: true if the network allows multiple edges, false otherwise.
- Directed: true if the network is directed, false otherwise.
- Weighted: true if the network is weighted, false otherwise.
- Selfloops: true if the network allows self-loops, false otherwise.
- Rec. directory: directory containing the recommendations.
- Grid: Route to a YAML file containing the structural metric configurations.
- Output file: File in which to store the structural metrics.
- Rec. Length: Maximum number of recommendations per user to consider.
- Full graph: if true, it uses all the edges/pairs of users in the networks. If false, only the recommended ones.
- 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.
-