All Downloads are FREE. Search and download functionalities are using the official Maven repository.

docs.javahelp.manual.common_tasks.generating_random_dags.html Maven / Gradle / Ivy

There is a newer version: 7.6.6
Show newest version



    
    Graph



Generating Random DAGs

In various contexts, you will be given the opportunity to generate a random DAG. The algorithm for generating random DAGs in Tetrad is a Markov chain algorithm due to Malancon, Dutour, and Philippe, which selects a random DAG uniformly from the set of DAGs that satisfy a given list of parameters, which you may tweak.

For instance, here is the dialog that comes up when you construct a new DAG in a Graph box:



If you select "A random DAG" in this dialog, you will need to specify seven parameters (or accept the defaults). The parameters are as follows:

  1. Number nodes - that is, the total number of nodes (measured plus latent) in the graph.
  2. Number of latent nodes - the number of nodes that should be made latent (see).
  3. Maximum number of edges - The number of edges in the randomly generated graph will not exceed this. In most cases, this will be the number of edges in the graph, but if other parameters are too constraining, the number of edges may be less than this.
  4. Maximum indegree - The number of edges into any given node will not exceed this.
  5. Maximum outdegree - The number of edges out of any given node will not exceed this.
  6. Maximum degree - The total number of edges connected to any given node will not exceed this.
  7. Connected - "Yes" or "No," depending on whether the entire DAG should be connected or not. A graph is connected if for every pair of nodes X, Y in the graph, there is an undirected path from X to Y.

For the combination of parameters in the above dialog, the following random DAG might be generated:

 

 





© 2015 - 2025 Weber Informatics LLC | Privacy Policy