Class Diffusion

java.lang.Object
es.uam.eps.ir.relison.examples.diffusion.Diffusion

public class Diffusion
extends java.lang.Object
Executes an information diffusion procedure over a network.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.lang.String BACKUP  
    private static java.lang.String INFOFEATS  
    private static java.lang.String N  
    private static java.lang.String REALPROP  
    private static java.lang.String REC  
    private static java.lang.String TESTGRAPH  
    private static java.lang.String USERFEATS  
  • Constructor Summary

    Constructors 
    Constructor Description
    Diffusion()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)
    Executes the information diffusion through a social network.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Executes the information diffusion through a social network.
      Parameters:
      args - Execution parameters
      1. configuration: a YAML file containing the simulation parameters.
      2. output: the directory for storing the outcomes of the simulation.
      3. numReps: the number of executions of each simulation.
      4. graphFile: path to a file containing the graph.
      5. multigraph: true if the graph has multiple edges between users, false otherwise.
      6. directed: true if the graph is directed, false otherwise.
      7. weighted: true if the graph is weighted, false otherwise.
      8. selfLoops: true if the graph accepts selfloops, false otherwise.
      9. readTypes: true if the graph types have to be read from the file, false otherwise.
      10. uIndexPath: route of a file containing the list of users.
      11. iIndexPath: route of a file containing the list of identifiers of the different information pieces.
      12. infoFile: file containing the relation between users and information pieces.
      13. Optional arguments:
        • -rec recFile: path to a recommendation file, whose edges will be added to the network.
        • -n n: the number of links (per user) to add from the recommendation (if any). By default: 10
        • -test-graph file: a folder to a network file containing additional edges (and shall be used for filtering the recommended edges to add).
        • -userfeats file1,file2,...,fileN: a comma-separated list of files containing the features for the users in the network (e.g. communities).
        • -infofeats file1,file2,...,fileN: a comma-separated list of files containing the features for the information pieces (e.g. hashtags).
        • -realprop file: a file indicating which information pieces have been repropagated by users in another information diffusion process.
        • -previous folder: file containing the result of a previous diffusion procedure.
      Throws:
      java.io.IOException - if something fails while reading / writing.