Uses of Interface
edu.cmu.tetrad.graph.Graph
Packages that use Graph
Package
Description
This package contains classes for causal graph search algorithms.
This package contains classes for scoring causal graph models.
This package contains classes for testing causal graph search algorithms.
This package contains utility classes for causal graph search algorithms.
A package for algorithms that are not ready for prime time.
-
Uses of Graph in edu.cmu.tetrad.algcomparison
Methods in edu.cmu.tetrad.algcomparison with parameters of type GraphModifier and TypeMethodDescriptionstatic @NotNull StringCompareTwoGraphs.getEdgewiseComparisonString(Graph trueGraph, Graph targetGraph) Returns an edgewise comparison of two graphs.static @NotNull StringCompareTwoGraphs.getMisclassificationTable(Graph trueGraph, Graph targetGraph) Returns a misclassification comparison of two graphs.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, Graph targetGraph) Returns a string representing a table of statistics that can be printed.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, Graph targetGraph, DataModel dataModel, long elapsedTime) Returns a string representing a table of statistics that can be printed.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, Graph targetGraph, DataModel dataModel, long elapsedTime, List<Statistic> statistics) AsCompareTwoGraphs.getStatsListTable(Graph, Graph, DataModel, long), but with the statistics to show given explicitly, in display order.static StringCompareTwoGraphs.getStatsListTable(Graph trueDag, Graph trueGraph, Graph targetGraph, DataModel dataModel, long elapsedTime) AsCompareTwoGraphs.getStatsListTable(Graph, Graph, DataModel, long), but with the true DAG given separately from the comparison graph; seeCompareTwoGraphs.getStatsListTable(Graph, Graph, Graph, DataModel, long, List).static StringCompareTwoGraphs.getStatsListTable(Graph trueDag, Graph trueGraph, Graph targetGraph, DataModel dataModel, long elapsedTime, List<Statistic> statistics) AsCompareTwoGraphs.getStatsListTable(Graph, Graph, DataModel, long, List), but with the true DAG given separately from the comparison graph.static StringCompareTwoGraphs.getStatsListTable(Graph trueDag, Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes) AsCompareTwoGraphs.getStatsListTable(Graph, List, List, DataModel, List), but with the true DAG given separately from the comparison graph; seeCompareTwoGraphs.getStatsListTable(Graph, Graph, Graph, DataModel, long, List).static StringCompareTwoGraphs.getStatsListTable(Graph trueDag, Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes, List<Statistic> statistics) AsCompareTwoGraphs.getStatsListTable(Graph, List, List, DataModel, List, List), but with the true DAG given separately from the comparison graph; seeCompareTwoGraphs.getStatsListTable(Graph, Graph, Graph, DataModel, long, List)for the division of labor between the two.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes) Returns a string representing a table of statistics for several target graphs against a single true graph, one column per target.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes, List<Statistic> statistics) AsCompareTwoGraphs.getStatsListTable(Graph, List, List, DataModel, List), but with the statistics to show given explicitly, in display order.Method parameters in edu.cmu.tetrad.algcomparison with type arguments of type GraphModifier and TypeMethodDescriptionstatic StringCompareTwoGraphs.getStatsListTable(Graph trueDag, Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes) AsCompareTwoGraphs.getStatsListTable(Graph, List, List, DataModel, List), but with the true DAG given separately from the comparison graph; seeCompareTwoGraphs.getStatsListTable(Graph, Graph, Graph, DataModel, long, List).static StringCompareTwoGraphs.getStatsListTable(Graph trueDag, Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes, List<Statistic> statistics) AsCompareTwoGraphs.getStatsListTable(Graph, List, List, DataModel, List, List), but with the true DAG given separately from the comparison graph; seeCompareTwoGraphs.getStatsListTable(Graph, Graph, Graph, DataModel, long, List)for the division of labor between the two.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes) Returns a string representing a table of statistics for several target graphs against a single true graph, one column per target.static StringCompareTwoGraphs.getStatsListTable(Graph trueGraph, List<Graph> targetGraphs, List<String> targetNames, DataModel dataModel, List<Long> elapsedTimes, List<Statistic> statistics) AsCompareTwoGraphs.getStatsListTable(Graph, List, List, DataModel, List), but with the statistics to show given explicitly, in display order. -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm
Methods in edu.cmu.tetrad.algcomparison.algorithm that return GraphModifier and TypeMethodDescriptionAlgorithm.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FirstInflection.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.StabilitySelection.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.StARS.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.AbstractBootstrapAlgorithm.search(DataModel dataModel, Parameters parameters) Runs the search.AbstractMultiBootstrapAlgorithm.search(List<DataModel> dataSets, Parameters parameters) Runs the multi-dataset search, bootstrapping ifnumberResamplingis greater than zero.Algorithm.search(DataModel dataSet, Parameters parameters) Runs the search.FirstInflection.search(DataModel dataSet, Parameters parameters) Runs the search.MultiDataSetAlgorithm.search(List<DataModel> dataSets, Parameters parameters) Runs the search.StabilitySelection.search(DataModel dataSet, Parameters parameters) Runs the search.StARS.search(DataModel dataSet, Parameters parameters) Runs the search.Methods in edu.cmu.tetrad.algcomparison.algorithm that return types with arguments of type GraphModifier and TypeMethodDescriptionAbstractBootstrapAlgorithm.getBootstrapGraphs()Returns the bootstrap graphs.ReturnsBootstrapGraphs.getBootstrapGraphs()Returns the bootstrap graphs.Methods in edu.cmu.tetrad.algcomparison.algorithm with parameters of type GraphModifier and TypeMethodDescriptionstatic AlgorithmAlgorithmFactory.create(Class<? extends Algorithm> algoClass, IndependenceWrapper test, ScoreWrapper score, Graph externalGraph) Creates an algorithm.static AlgorithmAlgorithmFactory.create(Class<? extends Algorithm> algoClass, Class<? extends IndependenceWrapper> indTestClass, Class<? extends ScoreWrapper> scoreClass, Graph externalGraph) Creates an algorithm.Algorithm.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FirstInflection.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.StabilitySelection.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.StARS.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to. -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm.continuous.dag
Methods in edu.cmu.tetrad.algcomparison.algorithm.continuous.dag that return GraphModifier and TypeMethodDescriptionDagma.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph.DirectLingam.getComparisonGraph(Graph graph) Returns a comparison graph based on the given true directed graph.Fask.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.FaskOrig.getComparisonGraph(Graph graph) Deprecated.Returns a comparison graph based on the true directed graph, if there is one.IcaLingam.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.IcaLingD.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Lingam.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.LingD.getComparisonGraph(Graph graph) Retrieves the comparison graph of the provided true directed graph.Dagma.runSearch(DataModel dataModel, Parameters parameters) Runs the DAGMA algorithm to search for a directed acyclic graph (DAG) in the given data model with the specified parameters.DirectLingam.runSearch(DataModel dataModel, Parameters parameters) Runs the Direct LiNGAM search algorithm on the given data model with the specified parameters.Fask.runSearch(DataModel dataModel, Parameters parameters) Runs the Fask search algorithm on the given data model with the specified parameters.FaskOrig.runSearch(DataModel dataModel, Parameters parameters) Deprecated.Runs the Fask search algorithm on the given data model with the specified parameters.IcaLingam.runSearch(DataModel dataSet, Parameters parameters) Runs the search on the given data by delegating to the successor algorithm and returns the resulting graph.IcaLingD.runSearch(DataModel dataSet, Parameters parameters) Runs the search on the given data by delegating to the successor algorithm and returns the resulting graph.Lingam.runSearch(DataModel dataSet, Parameters parameters) Searches for a graph structure based on the given data set and parameters.LingD.runSearch(DataModel dataSet, Parameters parameters) Runs a search on the provided data set using the given parameters.Methods in edu.cmu.tetrad.algcomparison.algorithm.continuous.dag that return types with arguments of type GraphModifier and TypeMethodDescriptionIcaLingD.getStableGraphs()Returns the stable graphs found by the most recent search.LingD.getStableGraphs()Retrieves the list of stable graphs generated by the algorithm.IcaLingD.getUnstableGraphs()Returns the unstable graphs found by the most recent search.LingD.getUnstableGraphs()Retrieves the list of unstable graphs generated by the algorithm.Methods in edu.cmu.tetrad.algcomparison.algorithm.continuous.dag with parameters of type GraphModifier and TypeMethodDescriptionDagma.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph.DirectLingam.getComparisonGraph(Graph graph) Returns a comparison graph based on the given true directed graph.Fask.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.FaskOrig.getComparisonGraph(Graph graph) Deprecated.Returns a comparison graph based on the true directed graph, if there is one.IcaLingam.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.IcaLingD.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Lingam.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.LingD.getComparisonGraph(Graph graph) Retrieves the comparison graph of the provided true directed graph. -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm.multi
Methods in edu.cmu.tetrad.algcomparison.algorithm.multi that return GraphModifier and TypeMethodDescriptionFaskConcatenated.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FaskPool.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FaskVote.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FciIod.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FgesConcatenated.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Images.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.ImagesBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.ImagesFges.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.Ion.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FaskConcatenated.search(DataModel dataSet, Parameters parameters) Runs the search.FaskConcatenated.search(List<DataModel> dataSets, Parameters parameters) Runs the search.FaskPool.search(DataModel dataSet, Parameters parameters) Runs the search.FaskPool.search(List<DataModel> dataSets, Parameters parameters) Runs the search.FaskVote.search(DataModel dataSet, Parameters parameters) Runs the search.FaskVote.search(List<DataModel> dataSets, Parameters parameters) Runs the search.FciIod.search(DataModel dataSet, Parameters parameters) Runs the search.FciIod.search(List<DataModel> dataSets, Parameters parameters) Runs the search.FgesConcatenated.search(DataModel dataSet, Parameters parameters) Runs the search.FgesConcatenated.search(List<DataModel> dataModels, Parameters parameters) Runs the search.ImagesBoss.search(DataModel dataSet, Parameters parameters) Runs the search.ImagesBoss.search(List<DataModel> dataSets, Parameters parameters) Runs the search.Ion.search(DataModel dataSet, Parameters parameters) Runs the search.Ion.search(List<DataModel> dataSets, Parameters parameters) Runs the search.Methods in edu.cmu.tetrad.algcomparison.algorithm.multi with parameters of type GraphModifier and TypeMethodDescriptionFaskConcatenated.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FaskPool.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FaskVote.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FciIod.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FgesConcatenated.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Images.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.ImagesBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.ImagesFges.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.Ion.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to. -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag
Methods in edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag that return GraphModifier and TypeMethodDescriptionBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.BossCdnodScore.getComparisonGraph(Graph graph) BossTopK.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.BossTrekMimic.getComparisonGraph(Graph graph) Deprecated.Returns that graph that the result should be compared to.Cam.getComparisonGraph(Graph graph) Constructs and returns a comparison graph in the form of a completed partially directed acyclic graph (CPDAG).Cdnod.getComparisonGraph(Graph graph) Returns a CPDAG that is the comparison graph for the given true directed graph.CdnodBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.CdnodPag.getComparisonGraph(Graph graph) Generates a comparison graph by converting a given graph into its completed partially directed acyclic graph (CPDAG) form.Cpc.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph.Cstar.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Fas.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Fges.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FgesMb.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Flop.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Grasp.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.IsFges.getComparisonGraph(Graph graph) Pc.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PcAr.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Pcd.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PcMax.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PcMb.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Pcmci.getComparisonGraph(Graph graph) Generates a comparison causal graph derived from the input graph by converting it to a completed partially directed acyclic graph (CPDAG).RestrictedBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.SingleGraphAlg.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Sp.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Tgin.getComparisonGraph(Graph graph) Deprecated.Returns that graph that the result should be compared to.TrekMimic.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.TwoStep.getComparisonGraph(Graph graph) Deprecated.Returns the given graph for comparison purposes.Cstar.search(DataModel dataSet, Parameters parameters) Runs the search.Pcmci.search(DataModel dataModel, Parameters parameters) Executes the PCMCI (Peter and Clark Momentary Conditional Independence) causal discovery algorithm on a given data model using specified parameters.SingleGraphAlg.search(DataModel dataSet, Parameters parameters) Runs the search.Methods in edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag with parameters of type GraphModifier and TypeMethodDescriptionBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.BossCdnodScore.getComparisonGraph(Graph graph) BossTopK.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.BossTrekMimic.getComparisonGraph(Graph graph) Deprecated.Returns that graph that the result should be compared to.Cam.getComparisonGraph(Graph graph) Constructs and returns a comparison graph in the form of a completed partially directed acyclic graph (CPDAG).Cdnod.getComparisonGraph(Graph graph) Returns a CPDAG that is the comparison graph for the given true directed graph.CdnodBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.CdnodPag.getComparisonGraph(Graph graph) Generates a comparison graph by converting a given graph into its completed partially directed acyclic graph (CPDAG) form.Cpc.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph.Cstar.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Fas.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Fges.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.FgesMb.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Flop.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Grasp.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.IsFges.getComparisonGraph(Graph graph) Pc.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PcAr.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Pcd.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PcMax.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PcMb.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Pcmci.getComparisonGraph(Graph graph) Generates a comparison causal graph derived from the input graph by converting it to a completed partially directed acyclic graph (CPDAG).RestrictedBoss.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.SingleGraphAlg.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Sp.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Tgin.getComparisonGraph(Graph graph) Deprecated.Returns that graph that the result should be compared to.TrekMimic.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.TwoStep.getComparisonGraph(Graph graph) Deprecated.Returns the given graph for comparison purposes.Constructors in edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm.oracle.pag
Methods in edu.cmu.tetrad.algcomparison.algorithm.oracle.pag that return GraphModifier and TypeMethodDescriptionBfci.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciBryan.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciBryanScore.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciC.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciD.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciScoreCheck.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BossCcd.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph: the cyclic PAG that BOSS-CCD is meant to recover, not the true graph itself.BossFci.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.BossPod.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Ccd.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph: the cyclic PAG that CCD is meant to recover, not the true graph itself.Cfci.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.Cpw.getComparisonGraph(Graph graph) Generates a comparison graph for the given graph by transforming it into a partial ancestral graph (PAG) representation viadagToPag.Dm.getComparisonGraph(Graph graph) Returns the comparison graph for the supplied graph.DmFcit.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.DmPc.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Fci.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.FciCyclicPw.getComparisonGraph(Graph graph) Generates a comparison graph for the given graph by transforming it into a partially directed acyclic graph (PAG) representation.FciMax.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.Fcit.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitMagMarkov.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitMarkov.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitSl.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitSlScoreCheck.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitZm.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Gfci.getComparisonGraph(Graph graph) Retrieves the comparison graph by transforming the true directed graph (if there is one) into a partially directed acyclic graph (PAG).GfciOld.getComparisonGraph(Graph graph) Retrieves the comparison graph by transforming the true directed graph (if there is one) into a partially directed acyclic graph (PAG).Gmas.getComparisonGraph(Graph graph) Returns the comparison graph, the PAG of the true DAG.GraspFci.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Icd.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph.IsGfci.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.LvBossExperimental.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a PAG.LvHeuristic.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).PagSampleRfci.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PagSamplingRfci.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph.Rfci.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.RfciBsc.getComparisonGraph(Graph graph) Retrieves the comparison graph from the true directed graph, if there is one.SpFci.getComparisonGraph(Graph graph) Returns the comparison graph created by converting a true directed graph into a partially directed acyclic graph (PAG).Bfci.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given dataset and parameters and returns the resulting graph.BfciBryan.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given dataset and parameters and returns the resulting graph.BfciBryanScore.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given dataset and parameters and returns the resulting graph.BfciC.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given dataset and parameters and returns the resulting graph.BfciD.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given dataset and parameters and returns the resulting graph.BfciScoreCheck.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given dataset and parameters and returns the resulting graph.BossCcd.runSearch(DataModel dataModel, Parameters parameters) Runs the BOSS-CCD search algorithm on the given data set using the specified parameters.BossFci.runSearch(DataModel dataModel, Parameters parameters) Runs the search on the given data by delegating to the successor algorithm and returns the resulting graph.BossPod.runSearch(DataModel dataModel, Parameters parameters) Always throws, because the implementation this class wrapped was removed in Tetrad 8.0.0.Ccd.runSearch(DataModel dataModel, Parameters parameters) Runs the CCD (Cyclic Causal Discovery) search algorithm on the given data set using the specified parameters.Cpw.runSearch(DataModel dataModel, Parameters parameters) Executes the search algorithm on a given data model and set of parameters, producing a partial ancestral graph (PAG) that represents the causal structure inferred from the data.DmFcit.runSearch(DataModel dataModel, Parameters parameters) Always throws, because the implementation this class wrapped was removed in Tetrad 8.0.0.DmPc.runSearch(DataModel dataModel, Parameters parameters) Always throws, because the implementation this class wrapped was removed in Tetrad 8.0.0.Fci.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to find a graph based on the given data model and parameters.FciCyclicPw.runSearch(DataModel dataModel, Parameters parameters) Executes the search algorithm on a given data model and set of parameters, producing a partially directed acyclic graph (PAG) that represents the causal structure inferred from the data.Fcit.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.FcitMagMarkov.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.FcitMarkov.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.FcitSl.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.FcitSlScoreCheck.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.FcitZm.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.Gfci.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to infer the causal graph given a dataset and specified parameters.GfciOld.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to infer the causal graph given a dataset and specified parameters.Gmas.runSearch(DataModel dataModel, Parameters parameters) Runs the search.GraspFci.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to find a graph structure based on a given data set and parameters.Icd.runSearch(DataModel dataModel, Parameters parameters) Runs the ICD search and returns the resulting PAG.LvBossExperimental.runSearch(DataModel dataModel, Parameters parameters) Runs LV-BOSS on the given data model.LvHeuristic.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to find a graph structure based on a given data model and parameters.PagSampleRfci.runSearch(DataModel dataModel, Parameters parameters) Runs the search on the given data by delegating to the successor algorithm and returns the resulting graph.PagSamplingRfci.runSearch(DataModel dataSet, Parameters parameters) Runs the search algorithm using the given data set and parameters.Rfci.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm on the given data model and parameters.RfciBsc.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm using a given dataset and parameters.SpFci.runSearch(DataModel dataModel, Parameters parameters) Executes a search algorithm to infer the causal graph structure from a given data modelMethods in edu.cmu.tetrad.algcomparison.algorithm.oracle.pag with parameters of type GraphModifier and TypeMethodDescriptionBfci.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciBryan.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciBryanScore.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciC.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciD.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BfciScoreCheck.getComparisonGraph(Graph graph) Retrieves the comparison graph generated by applying the DAG-to-PAG transformation to the given true directed graph.BossCcd.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph: the cyclic PAG that BOSS-CCD is meant to recover, not the true graph itself.BossFci.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.BossPod.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Ccd.getComparisonGraph(Graph graph) Retrieves the comparison graph for the given true directed graph: the cyclic PAG that CCD is meant to recover, not the true graph itself.Cfci.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.Cpw.getComparisonGraph(Graph graph) Generates a comparison graph for the given graph by transforming it into a partial ancestral graph (PAG) representation viadagToPag.Dm.getComparisonGraph(Graph graph) Returns the comparison graph for the supplied graph.DmFcit.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.DmPc.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Fci.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.FciCyclicPw.getComparisonGraph(Graph graph) Generates a comparison graph for the given graph by transforming it into a partially directed acyclic graph (PAG) representation.FciMax.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.Fcit.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitMagMarkov.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitMarkov.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitSl.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitSlScoreCheck.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).FcitZm.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Gfci.getComparisonGraph(Graph graph) Retrieves the comparison graph by transforming the true directed graph (if there is one) into a partially directed acyclic graph (PAG).GfciOld.getComparisonGraph(Graph graph) Retrieves the comparison graph by transforming the true directed graph (if there is one) into a partially directed acyclic graph (PAG).Gmas.getComparisonGraph(Graph graph) Returns the comparison graph, the PAG of the true DAG.GraspFci.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Icd.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph.IsGfci.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.LvBossExperimental.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a PAG.LvHeuristic.getComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).PagSampleRfci.getComparisonGraph(Graph graph) Returns that graph that the result should be compared to.PagSamplingRfci.getComparisonGraph(Graph graph) Returns the comparison graph based on the true directed graph.Rfci.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.RfciBsc.getComparisonGraph(Graph graph) Retrieves the comparison graph from the true directed graph, if there is one.SpFci.getComparisonGraph(Graph graph) Returns the comparison graph created by converting a true directed graph into a partially directed acyclic graph (PAG). -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm.other
Methods in edu.cmu.tetrad.algcomparison.algorithm.other that return GraphModifier and TypeMethodDescriptionFactorAnalysis.getComparisonGraph(Graph graph) Returns an undirected graph used for comparison.Glasso.getComparisonGraph(Graph graph) Retrieves a comparison graph for the given true directed graph.MimbuildBollen.getComparisonGraph(Graph graph) Returns an undirected graph used for comparison.MimbuildPca.getComparisonGraph(Graph graph) Returns an undirected graph used for comparison.PythonGin.getComparisonGraph(Graph graph) Deprecated.Returns a copy of the supplied graph for use as a comparison baseline.Rlcd.getComparisonGraph(Graph graph) The true graph itself is used for comparison, since the output includes latent nodes.FactorAnalysis.runSearch(DataModel dataModel, Parameters parameters) Executes a factor analysis search on the given data model using the provided parameters.Glasso.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to create a graph representation of the data.MimbuildBollen.search(DataModel dataModel, Parameters parameters) Executes a factor analysis search on the given data model using the provided parameters.MimbuildPca.search(DataModel dataModel, Parameters parameters) Executes a factor analysis search on the given data model using the provided parameters.PythonGin.search(DataModel dataModel, Parameters parameters) Deprecated.Runs GIN on the supplied dataset and returns the resulting causal graph.Rlcd.search(DataModel dataModel, Parameters parameters) Runs RLCD on a continuous data set.Rlcd.searchImputations(List<DataModel> imputations, Parameters parameters) Runs ONE RLCD search over several imputations of a data set with missing values; seeRlcd(List).Methods in edu.cmu.tetrad.algcomparison.algorithm.other with parameters of type GraphModifier and TypeMethodDescriptionFactorAnalysis.getComparisonGraph(Graph graph) Returns an undirected graph used for comparison.Glasso.getComparisonGraph(Graph graph) Retrieves a comparison graph for the given true directed graph.MimbuildBollen.getComparisonGraph(Graph graph) Returns an undirected graph used for comparison.MimbuildPca.getComparisonGraph(Graph graph) Returns an undirected graph used for comparison.PythonGin.getComparisonGraph(Graph graph) Deprecated.Returns a copy of the supplied graph for use as a comparison baseline.Rlcd.getComparisonGraph(Graph graph) The true graph itself is used for comparison, since the output includes latent nodes. -
Uses of Graph in edu.cmu.tetrad.algcomparison.algorithm.pairwise
Methods in edu.cmu.tetrad.algcomparison.algorithm.pairwise that return GraphModifier and TypeMethodDescriptionFaskPw.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.R1.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.R2.getComparisonGraph(Graph graph) Returns a comparison graph for the given true directed graph.R3.getComparisonGraph(Graph graph) Generates a comparison graph based on the provided true directed graph.Rskew.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph.RskewE.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.Skew.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.SkewE.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.Tanh.getComparisonGraph(Graph graph) Returns a comparison graph for the given true directed graph, if there is one.FaskPw.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given data model and parameters.R1.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm on the given data model with the provided parameters.R2.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the provided data model and parameters.R3.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to orient edges in the input graph using the provided data.Rskew.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the provided data model and parameters.RskewE.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to find the orientation of edges in a graph using the given data model and parameters.Skew.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to orient edges in the input graph using the given data model and parameters.SkewE.runSearch(DataModel dataModel, Parameters parameters) Executes the SkewE search algorithm.Tanh.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given data model and parameters.Methods in edu.cmu.tetrad.algcomparison.algorithm.pairwise with parameters of type GraphModifier and TypeMethodDescriptionFaskPw.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.R1.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.R2.getComparisonGraph(Graph graph) Returns a comparison graph for the given true directed graph.R3.getComparisonGraph(Graph graph) Generates a comparison graph based on the provided true directed graph.Rskew.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph.RskewE.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.Skew.getComparisonGraph(Graph graph) Returns a comparison graph based on the true directed graph, if there is one.SkewE.getComparisonGraph(Graph graph) Returns a comparison graph based on the provided true directed graph.Tanh.getComparisonGraph(Graph graph) Returns a comparison graph for the given true directed graph, if there is one. -
Uses of Graph in edu.cmu.tetrad.algcomparison.graph
Methods in edu.cmu.tetrad.algcomparison.graph that return GraphModifier and TypeMethodDescriptionCyclic.createGraph(Parameters parameters) createGraph.ErdosRenyi.createGraph(Parameters parameters) createGraph.RandomForward.createGraph(Parameters parameters) Creates a random graph by adding forward edges.RandomGraph.createGraph(Parameters parameters) createGraph.RandomMim.createGraph(Parameters parameters) createGraph.RandomMimic.createGraph(Parameters parameters) createGraph.RandomSingleFactorMim.createGraph(Parameters parameters) createGraph.RandomTwoFactorMim.createGraph(Parameters parameters) createGraph.ScaleFree.createGraph(Parameters parameters) createGraph.SingleGraph.createGraph(Parameters parameters) createGraph.Constructors in edu.cmu.tetrad.algcomparison.graph with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.algcomparison.independence
Methods in edu.cmu.tetrad.algcomparison.independence with parameters of type GraphModifier and TypeMethodDescriptionvoidSetter for the fieldgraph.voidsetGraph.Constructors in edu.cmu.tetrad.algcomparison.independence with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.algcomparison.score
Methods in edu.cmu.tetrad.algcomparison.score with parameters of type GraphModifier and TypeMethodDescriptionvoidSetter for the fieldgraph.Constructors in edu.cmu.tetrad.algcomparison.score with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.algcomparison.simulation
Methods in edu.cmu.tetrad.algcomparison.simulation that return GraphModifier and TypeMethodDescriptionObservationalStudySimulation.getContemporaneousGraph(int index) Returns the contemporaneous summary graph for the given run (equal to the true graph in non-serial mode).AdditiveNoiseSimulation.getTrueGraph(int index) Returns the true graph at the specified index.BayesNetSimulation.getTrueGraph(int index) Returns the true graph at the given index.ConditionalGaussianSimulation.getTrueGraph(int index) Returns the true graph at the given index.DaoSimulation.getTrueGraph(int index) DesignedExperimentSimulation.getTrueGraph(int index) Returns the true (pre-selection) graph at the specified index.GeneralAdditiveModel.getTrueGraph(int index) Retrieves the true graph specified by the given index from the list of graphs.GeneralNoiseSimulation.getTrueGraph(int index) Returns the true graph at the specified index.GeneralSemSimulation.getTrueGraph(int index) Returns the true graph at the specified index.GeneralSemSimulationSpecial1.getTrueGraph(int index) Returns the true graph at the given index.GpSemSimulation.getTrueGraph(int index) Returns the true graph at the given index.HybridCgSimulation.getTrueGraph(int index) Returns the true graph at the specified index.LeeHastieSimulation.getTrueGraph(int index) Returns the true graph at the given index.LgMnarSimulation.getTrueGraph(int index) Returns the true graph at the specified index.LinearFisherModel.getTrueGraph(int index) Returns the true graph at the given index.LinearSineSimulation.getTrueGraph(int index) Returns the true graph at the given index.NonlinearFunctionsOfLinear.getTrueGraph(int index) Returns the true graph at the specified index.ObservationalStudySimulation.getTrueGraph(int index) Returns the true graph at the specified index: a DAG, or a TimeLagGraph with maximum lag 1 in serial mode.PostnonlinearSem.getTrueGraph(int index) Returns the true graph at the specified index.SemSimulation.getTrueGraph(int index) Returns the true graph at the specified index.SemThenDiscretize.getTrueGraph(int index) Returns the true graph at the given index.Simulation.getTrueGraph(int index) Returns the true graph at the given index.SingleDatasetSimulation.getTrueGraph(int index) Gets the true graph for the simulation at the specified index.StandardizedSemSimulation.getTrueGraph(int index) Returns the true graph at the given index.TimeSeriesSemSimulation.getTrueGraph(int index) Returns the true graph at the given index.TrainedDagModel.getTrueGraph(int index) Returns the true graph at the given index.static GraphLeeHastieSimulation.makeMixedGraph(Graph g, Map<String, Integer> m) makeMixedGraph.Methods in edu.cmu.tetrad.algcomparison.simulation with parameters of type GraphModifier and TypeMethodDescriptionstatic GeneralizedSemPmLeeHastieSimulation.GaussianCategoricalPm(Graph trueGraph, String paramTemplate) GaussianCategoricalPm.LeeHastieSimulation.getNodeDists(Graph g) getNodeDists.static GraphLeeHastieSimulation.makeMixedGraph(Graph g, Map<String, Integer> m) makeMixedGraph.DaoSimulation.soficOrder(Graph dag) Returns a source-first consistent topological ordering of the DAG nodes.Constructors in edu.cmu.tetrad.algcomparison.simulation with parameters of type GraphModifierConstructorDescriptionDaoSimulation(Graph trueGraph) Convenience constructor that fixes a single, predetermined true DAG. -
Uses of Graph in edu.cmu.tetrad.algcomparison.statistic
Methods in edu.cmu.tetrad.algcomparison.statistic that return GraphModifier and TypeMethodDescriptionstatic GraphStatistic.alignNodes(Graph trueGraph, Graph estGraph) Returns the estimated graph with its nodes replaced, by name, with the true graph's node objects.static GraphStatistic.trueDagOrGraph(Graph trueDag, Graph trueGraph) Returns the graph a statistic should use for DAG-level questions--ancestry, latent confounding, or converting the truth to a CPDAG or PAG.Methods in edu.cmu.tetrad.algcomparison.statistic with parameters of type GraphModifier and TypeMethodDescriptionstatic GraphStatistic.alignNodes(Graph trueGraph, Graph estGraph) Returns the estimated graph with its nodes replaced, by name, with the true graph's node objects.static booleanCommonAncestorTruePositiveBidirected.existsCommonAncestor(Graph trueGraph, Edge edge) Returns true if there is a common ancestor of X and Y in the graph.static booleanNumCommonMeasuredAncestorBidirected.existsCommonAncestor(Graph trueGraph, Edge edge) existsCommonAncestor.booleanNumDirectedEdgeNoMeasureAncestors.existsDirectedPathFromTo(Graph graph, Node node1, Node node2) existsDirectedPathFromTo.static booleanLatentCommonAncestorTruePositiveBidirected.existsLatentCommonAncestor(Graph trueGraph, Edge edge) existsLatentCommonAncestor.doubleAdjacencyFn.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyFp.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyFpr.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyTn.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyTp.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAdjacencyTpr.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAncestorF1.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAncestorPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAncestorRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAncestralPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAncestralRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadFn.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadFp.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadFpr.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadPrecisionCommonEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadRecallCommonEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadTn.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleArrowheadTp.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAverageDegreeEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleAverageDegreeTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBicDiff.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBicDiffPerRecord.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBicEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBicTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBidirectedEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBidirectedFP.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBidirectedLatentExistsLatentCommonCause.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the percentage of correctly identified bidirected edges in an estimated graph for which a latent confounder exists in the true graph.doubleBidirectedLatentPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the percentage of correctly identified bidirected edges in an estimated graph for which a latent confounder exists in the true graph.doubleBidirectedPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBidirectedRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBidirectedTP.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleBidirectedTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleCirclePrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the circle precision, which is the ratio of true positive arrows to the sum of true positive arrows and false positive arrows.doubleCircleRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the circle recall value for a given true graph, estimated graph, and data model.doubleCommonAncestorFalseNegativeBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleCommonAncestorFalsePositiveBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleCommonAncestorTruePositiveBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleCommonMeasuredAncestorRecallBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleCorrectSkeleton.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleDefiniteDirectedPathPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleDefiniteDirectedPathRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleDensityEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleDensityTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleElapsedCpuTime.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleF1Adj.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleF1All.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleF1Arrow.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleF1Circle.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleF1Tail.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleFalseNegativesAdjacencies.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleFalsePositiveAdjacencies.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleFBetaAdj.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleFractionDependentUnderAlternative.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleFractionDependentUnderNull.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleGraphExactlyRight.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleIdaAverageSquaredDistance.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value of the IDA Average Squared Distance statistic.doubleIdaCheckAvgMaxSquaredDiffEstTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the average maximum squared difference between the estimated and true values for a given data model and graphs.doubleIdaCheckAvgMinSquaredDiffEstTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the average minimum squared difference between the estimated and true values for a given data model and graphs.doubleIdaCheckAvgSquaredDifference.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Retrieves the value of the statistic, which is the average squared difference between the estimated and true values for a given data model and graphs.doubleIdaMaximumSquaredDifference.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value of the statistic "IDA Average Maximum Squared Difference".doubleIdaMinimumSquaredDifference.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value of the statistic "IDA Average Minimum Squared Difference".doubleImpliedArrowOrientationRatioEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleImpliedArrowOrientationRatioEst2.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleImpliedOrientationRatioEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleImpliesLegalMag.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleKnowledgeSatisfied.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleLatentCommonAncestorFalseNegativeBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleLatentCommonAncestorFalsePositiveBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleLatentCommonAncestorRecallBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleLatentCommonAncestorTruePositiveBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleLegalCpdag.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value indicating whether the estimated graph is a Legal CPDAG (1.0) or not (0.0).doubleLegalPag.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleLocalGraphPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) This method calculates the Local Graph Precision.doubleLocalGraphRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) doubleMagCgScore.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleMagDgScore.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleMagSemScore.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleMarkovCheckAdPasses.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Anderson Darling p-value > 0.05.doubleMarkovCheckAdPassesBestOf10.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Anderson Darling p-value > 0.05.doubleMarkovCheckAndersonDarlingP.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckAndersonDarlingPBestOf10.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckBinomialP.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Binomial P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckBinomialPBestOf10.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Binomial P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckFdrCutoffP.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Kolmogorov-Smirnoff P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckFractionDependentH0.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckFractionDependentH1.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Anderson Darling P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckKolmogorovSmirnoffP.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Kolmogorov-Smirnoff P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckKolmogorovSmirnoffPBestOf10.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Kolmogorov-Smirnoff P value for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMarkovCheckKsPasses.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates whether Kolmogorov-Smirnoff P > 0.05.doubleMarkovCheckKsPassesBestOf10.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates whether Kolmogorov-Smirnoff P > 0.05.doubleMathewsCorrAdj.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleMathewsCorrArrow.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleMaximal.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Checks whether a PAG is maximal.doubleMaximalityCondition.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleMcGetNumTestsH0.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of tests done under the null hypothesis of independence for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleMcGetNumTestsH1.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of tests done under the null hypothesis of independence for the Markov check of whether the p-values for the estimated graph are distributed as U(0, 1).doubleNoAlmostCyclicPathsCondition.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNoCyclicPathsCondition.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNodesInCyclesPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNodesInCyclesRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNonancestorPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNonancestorRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNoPotentiallyDirectedF1.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNoSemidirectedPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNoSemidirectedRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumAmbiguousTriples.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberArrowsEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberArrowsNotInUnshieldedCollidersEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberCollidersEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberEdgesEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberEdgesInCollidersEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberEdgesInUnshieldedCollidersEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberEdgesTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberOfEdgesEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberOfEdgesTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberTailsEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumberUnshieldedCollidersEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumBidirectedBothNonancestorAncestor.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumBidirectedEdgesEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumBidirectedEdgesTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumColoredDD.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumColoredNL.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumColoredPD.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumColoredPL.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCommonMeasuredAncestorBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatibleDefiniteDirectedEdgeAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatibleDirectedEdgeConfounded.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatibleDirectedEdgeNonAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatibleEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatiblePossiblyDirectedEdgeAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatiblePossiblyDirectedEdgeNonAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatiblePotentiallyDirectedEdgeAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatiblePotentiallyDirectedEdgeNonAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCompatibleVisibleNonancestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCorrectBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Returns the number of bidirected edges for which a latent confounder exists.doubleNumCorrectDDAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCorrectPDAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCorrectVisibleEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumCoveringAdjacenciesInPag.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDefinitelyDirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDefinitelyNotDirectedPaths.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedEdgeAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedEdgeBnaMeasuredCounfounded.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedEdgeNoMeasureAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedEdgeNotAncNotRev.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedEdgeReversed.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedPathsEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedPathsTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumDirectedShouldBePartiallyDirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumEdgeInEstInTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumGenuineAdjacenciesInPag.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumIncorrectDDAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumIncorrectPDAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumIncorrectVisibleAncestors.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumLatentCommonAncestorBidirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumNondirectedEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumParametersEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumPartiallyOrientedEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumPotentiallyDirected.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumUndirectedEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumVisibleEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleNumVisibleEdgeTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Retrieves the number of X-->Y edges for which X-->Y is visible in the true PAG.doubleOrientationPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleOrientationRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Orientation Recall statistic, which measures the accuracy of the estimated orientation of edges in a graph compared to the true graph.doublePagAdjacencyPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the adjacency precision of the estimated graph compared to the true graph.doublePagAdjacencyRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the adjacency recall compared to the true PAG (Partial Ancestral Graph).doubleParameterColumn.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doublePercentAmbiguous.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the percentage of ambiguous triples in the estimated graph compared to the true graph.doublePercentBidirectedEdges.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleProportionSemidirectedPathsNotReversedEst.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the proportion of semi(X, Y) in the estimated graph for which there is no semi(Y, X) in the true graph.doubleProportionSemidirectedPathsNotReversedTrue.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the proportion of semi(X, Y) paths in the true graph for which there is no semi(Y, Z) path in the estimated graph.doublePvalueDistanceToAlpha.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doublePvalueUniformityUnderNull.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleSemidirectedPathF1.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the F1 statistic for adjacencies.doubleSemidirectedPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the potentially directed precision value.doubleSemidirectedRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the Semidirected-Rec statistic, which is the proportion of (X, Y) where if there is a potentially directed path in the true graph, then there is also a potentially directed path in the estimated graph.default doubleReturns the value of this statistic, given the true graph and the estimated graph.default doubleReturns the value of this statistic, given the true graph and the estimated graph.default doubleStatistic.getValue(Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Returns the value of this statistic, given the true graph and the estimated graph.doubleStatistic.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.default doubleStatistic.getValue(Graph trueGraph, Graph estGraph, Parameters parameters) Returns the value of this statistic, given the true graph and the estimated graph.doubleStructuralHammingDistance.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTailPrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the tail precision, which is the ratio of true positive arrows to the sum of true positive arrows and false positive arrows.doubleTailRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the tail recall value for a given true graph, estimated graph, and data model.doubleTrueDagFalseNegativesArrows.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Computes the number of False Negatives for Arrows in the estimated graph compared to the true DAG.doubleTrueDagFalseNegativesTails.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of false negatives for tail endpoints compared to the true Directed Acyclic Graph (DAG).doubleTrueDagFalsePositiveArrow.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of false positive arrows in the estimated graph compared to the true directed acyclic graph (DAG).doubleTrueDagFalsePositiveTails.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the number of false positives for tail endpoints in the estimated graph compared to the true graph.doubleTrueDagPrecisionArrow.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the precision of arrow edges (X*->Y) in the estimated graph compared to the true DAG.doubleTrueDagPrecisionTails.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the precision of directed edges in the estimated graph (estGraph) relative to a true directed acyclic graph (trueDag).doubleTrueDagRecallArrows.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTrueDagRecallTails.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTrueDagTruePositiveArrow.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Computes the count of bidirected true positives for arrows in the estimated graph compared to the true graph.doubleTrueDagTruePositiveDirectedPathNonancestor.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Computes the number of true positives for directed paths in the estimated graph that are consistent with the true graph, excluding cases where the estimated graph incorrectly identifies the reverse relationship.doubleTrueDagTruePositiveTails.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTwoCycleFalseNegative.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTwoCycleFalsePositive.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTwoCyclePrecision.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTwoCycleRecall.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.doubleTwoCycleTruePositive.getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates and returns the value of the statistic based on the provided graphs, data model, and parameters.static GraphStatistic.trueDagOrGraph(Graph trueDag, Graph trueGraph) Returns the graph a statistic should use for DAG-level questions--ancestry, latent confounding, or converting the truth to a CPDAG or PAG. -
Uses of Graph in edu.cmu.tetrad.algcomparison.statistic.utils
Constructors in edu.cmu.tetrad.algcomparison.statistic.utils with parameters of type GraphModifierConstructorDescriptionAdjacencyConfusion(Graph truth, Graph est) Constructs a new AdjacencyConfusion object from the given graphs.ArrowConfusion(Graph truth, Graph est) Constructs a new ArrowConfusion object.ArrowConfusion(Graph truth, Graph est, boolean truthAdj) Constructs a new ArrowConfusion object.BidirectedConfusion(Graph truth, Graph est) Constructs a new confusion matrix for bidirected edges.CircleConfusion(Graph truth, Graph est) Constructs a new CircleConfusion object.CircleConfusion(Graph truth, Graph est, boolean truthAdj) Constructs a new CircleConfusion object.LocalGraphConfusion(Graph trueGraph, Graph estGraph) Constructs a new LocalGraphConfusion object from the given graphs.OrientationConfusion(Graph truth, Graph est) Constructor for OrientationConfusion.TailConfusion(Graph truth, Graph est) Constructor for TailConfusion. -
Uses of Graph in edu.cmu.tetrad.algcomparison.sweep
Methods in edu.cmu.tetrad.algcomparison.sweep that return GraphModifier and TypeMethodDescriptionSweepResult.getEdgeProbabilityGraph()Returns the probability-annotated graph aggregating the resample searches, or null if no resamples were run.SweepResult.getPointGraph()Returns the point-estimate graph from searching the full dataset at this setting.Methods in edu.cmu.tetrad.algcomparison.sweep that return types with arguments of type GraphModifier and TypeMethodDescriptionParameterSweep.searchOnResamples(Algorithm algorithm, Parameters parameters, List<DataSet> resamples, List<Node> variables, boolean parallelized) Runs the algorithm at the given parameters on each resample and returns the graphs, with nodes replaced by the given variable list so graphs are comparable.Method parameters in edu.cmu.tetrad.algcomparison.sweep with type arguments of type GraphModifier and TypeMethodDescriptionstatic doubleParameterSweep.adjacencyInstability(List<Graph> graphs, List<Node> variables) Computes the StARS-style adjacency instability of a set of graphs over the given variables: the mean over unordered variable pairs of 2 * theta * (1 - theta), where theta is the fraction of graphs in which the pair is adjacent.Constructors in edu.cmu.tetrad.algcomparison.sweep with parameters of type GraphModifierConstructorDescriptionSweepResult(Map<String, Object> setting, Graph pointGraph, Graph edgeProbabilityGraph, double adjacencyInstability, SweepResult.MarkovStats markovStats, int numResamples, long elapsedMillis) Constructs a result. -
Uses of Graph in edu.cmu.tetrad.algcomparison.utils
Methods in edu.cmu.tetrad.algcomparison.utils that return GraphModifier and TypeMethodDescriptionPoolsImputations.searchImputations(List<DataModel> imputations, Parameters parameters) Runs one search over the imputations. -
Uses of Graph in edu.cmu.tetrad.bayes
Methods in edu.cmu.tetrad.bayes that return GraphModifier and TypeMethodDescriptionBayesIm.getDag()$DescriptionBayesPm.getDag()Returns the DAG.DirichletBayesIm.getDag()getDag.MlBayesIm.getDag()getDag.MlBayesImObs.getDag()getDag.UpdatedBayesIm.getDag()getDag.ApproximateUpdater.getManipulatedGraph()getManipulatedGraph.Identifiability.getManipulatedGraph()getManipulatedGraph.JunctionTreeUpdater.getManipulatedGraph()Retrieves the manipulated Bayesian network representation associated with this updater.ManipulatingBayesUpdater.getManipulatedGraph()Returns the manipulated graph.RowSummingExactUpdater.getManipulatedGraph()getManipulatedGraph.VariableEliminationUpdater.getManipulatedGraph()Retrieves the manipulated Bayesian network representation associated with this updater.static GraphCreate a moral graph.Methods in edu.cmu.tetrad.bayes that return types with arguments of type GraphModifier and TypeMethodDescriptionThis method takes an acyclic graph as input and returns a list of graphs each of which is a modification of the original graph with either an edge deleted, added or reversed.Methods in edu.cmu.tetrad.bayes with parameters of type GraphModifier and TypeMethodDescriptionstatic voidApply Tarjan and Yannakakis (1984) fill in algorithm for graph triangulation.This method takes an acyclic graph as input and returns a list of graphs each of which is a modification of the original graph with either an edge deleted, added or reversed.GraphTools.getCliques(Node[] ordering, Graph graph) Get cliques in a decomposable graph.BayesProperties.getLikelihoodRatioP(Graph graph0) Likelihood-ratio p-value for BN vs.static Node[]GraphTools.getMaximumCardinalityOrdering(Graph graph) Perform Tarjan and Yannakakis (1984) maximum cardinality search (MCS) to get the maximum cardinality ordering.static GraphCreate a moral graph.voidSetter for the fieldgraph.Constructors in edu.cmu.tetrad.bayes with parameters of type GraphModifierConstructorDescriptionConstruct a new BayesPm using the given DAG, assigning each variable two values named "value1" and "value2" unless nodes are discrete variables with categories already defined.Constructs a new BayesPm from the given DAG, assigning each variable a random number of values betweenlowerBoundandupperBound.Constructs a new BayesPm using a given DAG, using as much information from the old BayesPm as possible.Constructs a new BayesPm from the given DAG, using as much information from the old BayesPm as possible.Constructs a new BayesPm using the provided DAG and dataset.EmBayesProperties(DataSet dataSet, Graph graph) Constructor for EmBayesProperties. -
Uses of Graph in edu.cmu.tetrad.calibration
Methods in edu.cmu.tetrad.calibration that return GraphModifier and TypeMethodDescriptionDataForCalibrationRfci.learnBNRFCI(DataSet bootstrapSample, int depth, Graph truePag) learnBNRFCI.DataForCalibrationRfci.makeDAG(int numVars, double edgesPerNode, int numLatentConfounders) makeDAG.Methods in edu.cmu.tetrad.calibration with parameters of type GraphModifier and TypeMethodDescriptionDataForCalibrationRfci.learnBNRFCI(DataSet bootstrapSample, int depth, Graph truePag) learnBNRFCI. -
Uses of Graph in edu.cmu.tetrad.data
Methods in edu.cmu.tetrad.data with parameters of type GraphConstructors in edu.cmu.tetrad.data with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.data.missing
Fields in edu.cmu.tetrad.data.missing declared as GraphModifier and TypeFieldDescriptionfinal GraphImputationSearch.Result.pooledGraphThe pooled graph.Fields in edu.cmu.tetrad.data.missing with type parameters of type GraphModifier and TypeFieldDescriptionImputationSearch.Result.imputationGraphsThe per-imputation graphs, in imputation order. -
Uses of Graph in edu.cmu.tetrad.data.simulation
Methods in edu.cmu.tetrad.data.simulation that return GraphModifier and TypeMethodDescriptionLoadContinuousDataAndGraphs.getTrueGraph(int index) Returns the true graph at the given index.LoadContinuousDataAndSingleGraph.getTrueGraph(int index) Returns the true graph at the given index.LoadContinuousDataSmithSim.getTrueGraph(int index) Returns the true graph at the given index.LoadDataAndGraphs.getTrueGraph(int index) Returns the true graph at the given index.LoadDataFromFileWithoutGraph.getTrueGraph(int index) Returns the true graph at the given index.readGraph. -
Uses of Graph in edu.cmu.tetrad.graph
Classes in edu.cmu.tetrad.graph that implement GraphModifier and TypeClassDescriptionfinal classRepresents a directed acyclic graph--that is, a graph containing only directed edges, with no cycles.classStores a graph a list of lists of edges adjacent to each node in the graph, with an additional list storing all of the edges in the graph.classImplements a graph allowing nodes in the getModel time lag to have parents taken from previous time lags.classEdgeListGraph subclass that applies anEdgeReplicationPolicywhenever edges are added/removed or endpoints are oriented.final classRepresents the graphical structure of a structural equation model.classRepresents a time series graph--that is, a graph with a fixed number S of lags, with edges into initial lags only--that is, into nodes in the first R lags, for some R.Classes in edu.cmu.tetrad.graph that implement interfaces with type arguments of type GraphModifier and TypeClassDescriptionfinal classLazily enumerates the consistent DAG extensions of a DAG or CPDAG.final classLazily enumerates the consistent DAG extensions of a DAG or CPDAG.final classLazily enumerates the Loyal Equivalent Graphs (LEGs) of a directed Markov equivalence class by walking the class transformationally, via Zhang & Spirtes' legitimate directed-edge reversals rather than by re-orienting the circle component from scratch.final classLazily enumerates the Loyal Equivalent Graphs (LEGs) of a directed Markov equivalence class by walking the class transformationally, via Zhang & Spirtes' legitimate directed-edge reversals rather than by re-orienting the circle component from scratch.Methods in edu.cmu.tetrad.graph that return GraphModifier and TypeMethodDescriptionstatic GraphGraphUtils.bidirectedToUndirected(Graph graph) Converts a bidirected graph to an undirected graph.static GraphGraphTransforms.calcAdjacencyGraph(Graph dag) Calculates the adjacency graph for the given Directed Acyclic Graph (DAG).static GraphGraphUtils.completeGraph(Graph graph) completeGraph.static GraphRandomMim.constructRandomMim(List<RandomMim.LatentGroupSpec> specs, Integer metaEdgeCount, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations, RandomMim.LatentLinkMode latentLinkMode) Constructs a random meta-graph as a Multiple Indicator Model (MIM) with specified structural constraints.static GraphRandomMimic.constructRandomMimic(List<RandomMimic.MimicGroupSpec> specs, Integer metaEdgeCount, int numSharedParents, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations) Constructs a random MIMIC graph with specified structural constraints.static GraphConverts a string spec of a graph--for example, "X1-->X2, X1---X3, X2o->X4, X3<->X4" to a Graph.default GraphGraph.copy()Creates and returns a copy of the current graph.static GraphGraphTransforms.dagFromCpdag(Graph graph) Converts a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG).static GraphGraphTransforms.dagFromCpdag(Graph graph, boolean verbose) Converts a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG).static GraphGraphTransforms.dagFromCpdag(Graph graph, boolean meekPreventCycles, boolean verbose) Converts a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG).static GraphGraphTransforms.dagFromCpdag(Graph graph, Knowledge knowledge) dagFromCpdag.static GraphGraphTransforms.dagFromCpdag(Graph cpdag, Knowledge knowledge, boolean verbose) Returns a random DAG from the given CPDAG.static GraphGraphTransforms.dagToCpdag(Graph dag) Returns the completed partially directed acyclic graph (CPDAG) for a given directed acyclic graph (DAG).static @NotNull GraphConverts a Directed Acyclic Graph (DAG) to a Maximal Ancestral Graph (MAG) by adding arrows to the edges.static @NotNull GraphConverts a Directed Acyclic Graph (DAG) to a Partial Ancestral Graph (PAG) using the DagToPag algorithm.static GraphConverts a Directed Acyclic Graph (DAG) to a Partial Ancestral Graph (PAG).static GraphGraphTransforms.dagToPag(Graph graph, Knowledge knowledge, boolean excludeSelectionBias, int recursiveDepth) Converts a Directed Acyclic Graph (DAG) to a Partial Ancestral Graph (PAG) using the provided DAG and knowledge.static GraphGraphTransforms.dcgToCcdPag(Graph graph) Returns the graph CCD is meant to recover from a directed cyclic graph (DCG): the cyclic PAG of its d-separation equivalence class, with CCD's underline and dotted-underline annotations.static GraphGraphUtils.detachNodes(Graph graph) Returns a copy of the graph whose nodes are fresh objects (seeGraphUtils.copyNode(Node)), equal to the originals and in the same positions, with the same edges (including their properties, edge type probabilities, and display attributes), underlines, ambiguous triples, and graph attributes.static GraphGraphUtils.emptyGraph(int numNodes) Creates an empty graph with the specified number of nodes.static @NotNull GraphGraphUtils.fixDirections(Graph graph) Processes the given graph by fixing the directions of edges to ensure consistency, flipping edges where necessary, and optionally preserving ancillary graph information.static GraphGraphUtils.getAdjacencySubgraphWithTargetNode(Graph graph, Node target) Calculates the subgraph over the adjacency of a target node for a DAG, CPDAG, MAG, or PAG.EdgeListGraph.getAncillaryGraph(String name) Returns the ancillary graph with the given name, or null if no ancillary graph by that name has been set.static GraphGraphUtils.getComparisonGraph(Graph graph, Parameters params) Returns a comparison graph based on the specified parameters.static GraphGenerates a directed acyclic graph (DAG) based on the given list of nodes using Raskutti and Uhler's method.RandomGraph.UniformGraphGenerator.getDag()Returns the parent matrix for the graph.Returns the parent matrix for the graph.static GraphGraphUtils.getGraphWithoutXToY(Graph G, Node x, Node y, GraphUtils.GraphType graphType) Returns a graph that is obtained by removing the edge from node x to node y from the input graph.static GraphGraphUtils.getMarkovBlanketSubgraphWithTargetNode(Graph graph, Node target) Calculates the subgraph over the Markov blanket of a target node for a DAG, CPDAG, MAG, or PAG.static GraphGraphUtils.getParentsSubgraphWithTargetNode(Graph graph, Node target) Calculates the subgraph over the parents of a target node for a DAG, CPDAG, MAG, or PAG.static @NotNull GraphGraphUtils.getReplicatingGraph(Graph graph) Creates a replicating graph based on the provided graph.static GraphGraphUtils.guaranteePag(Graph pag, FciOrient fciOrient, Knowledge knowledge, Set<Triple> knownColliders, boolean verbose, Set<Node> selection, boolean excludeSelectionBias, int recursiveDepth) Guarantees the correctness of a Partial Ancestral Graph (PAG) by repairing faulty structures such as cycles, violations of maximality, and incorrectly oriented edges, using FCI orientation rules and knowledge constraints.static GraphloadGraph.static GraphGraphSaveLoadUtils.loadGraphAmatCpdag(File file) Loads a CPDAG in the "amat.cpdag" format of PCALG.static GraphGraphSaveLoadUtils.loadGraphAmatPag(File file) Loads a PAG in the "amat.pag" format of PCALG.static GraphGraphSaveLoadUtils.loadGraphBNTPcMatrix(List<Node> vars, DataSet dataSet) loadGraphBNTPcMatrix.static GraphGraphSaveLoadUtils.loadGraphJson(File file) loadGraphJson.static GraphGraphSaveLoadUtils.loadGraphRuben(File file) loadGraphRuben.static GraphGraphSaveLoadUtils.loadGraphTxt(File file) loadGraphTxt.static GraphGraphSaveLoadUtils.loadRSpecial(File file) loadRSpecial.static GraphConverts a maximal ancestral graph (MAG) into a partial ancestral graph (PAG).static GraphGraphUtils.markovBlanketSubgraph(Node target, Graph graph) Calculates the subgraph over the Markov blanket of a target node in a given DAG, CPDAG, MAG, or PAG.static GraphGraphFactoryUtil.newGraph(boolean replicating) Creates a new instance of a Graph with the specified replication policy.static GraphCreates a new instance of a Graph based on the given graph.static GraphCreates a new instance of a Graph initialized with the provided list of nodes.ConsistentDagIterator.next()LegEnumerator.next()static GraphGraphUtils.nondirectedGraph(Graph graph) undirectedGraph.static GraphGraphTransforms.noUnshieldedColliderDag(Graph und) Orients an undirected chordal graph into a DAG with no unshielded colliders by directing every edge from the earlier to the later endpoint of a Maximum Cardinality Search order.static GraphGraphSaveLoadUtils.parseGraphXml(nu.xom.Element graphElement, Map<String, Node> nodes) parseGraphXml.static GraphRandomGraph.randomCyclicGraph2(int numNodes, int numEdges, int maxDegree) Makes a cyclic graph by repeatedly adding cycles of length of 3, 4, or 5 to the graph, then finally adding two cycles.static GraphRandomGraph.randomCyclicGraph3(int numNodes, int numEdges, int maxDegree, double probCycle, double probTwoCycle) Makes a cyclic graph by repeatedly adding cycles of length of 3, 4, or 5 to the graph, then finally adding two cycles.static GraphRandomGraph.randomDag(int numNodes, int numLatentConfounders, int maxNumEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected) Generates a random Directed Acyclic Graph (DAG) with the specified parameters.static GraphRandomGraph.randomDag(int numNodes, int numLatentConfounders, int maxNumEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, long seed) Generates a random Directed Acyclic Graph (DAG) based on specified constraints.static GraphRandomGraph.randomGraph(int numMeasures, int numLatentConfounders, int numEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected) Generates a random graph based on the given parameters.static GraphRandomGraph.randomGraph(int numMeasures, int numLatentConfounders, int numEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, long seed) Generates a random graph based on the specified parameters.static GraphRandomGraph.randomGraph(List<Node> nodes, int numLatentConfounders, int maxNumEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected) Generates a random graph based on the given parameters.static GraphRandomGraph.randomGraph(List<Node> nodes, int numLatentConfounders, int maxNumEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, long seed) Generates a random graph with the specified parameters and properties.static GraphRandomGraph.randomGraphRandomForwardEdges(int numNodes, int numLatentConfounders, int numEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, long seed) Generates a random graph with the given parameters and random forward edges.static GraphRandomGraph.randomGraphRandomForwardEdges(List<Node> nodes, int numLatentConfounders, int numEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected) Generates a random graph with forward edges.static GraphRandomGraph.randomGraphRandomForwardEdges(List<Node> nodes, int numLatentConfounders, int numEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, boolean layoutAsCircle, long seed) Generates a random graph with forward edges.static GraphRandomGraph.randomGraphRandomForwardEdges(List<Node> nodes, int numLatentConfounders, int numEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, long seed) Generates a random directed acyclic graph with specified properties, including constraints on maximum degree, indegree, and outdegree, with random forward edges.static GraphRandomGraph.randomGraphUniform(List<Node> nodes, int numLatentConfounders, int maxNumEdges, int maxDegree, int maxIndegree, int maxOutdegree, boolean connected, int numIterations) Generates a random graph using UniformGraphGenerator with the specified parameters.static GraphRandomGraph.randomScaleFreeGraph(int numNodes, int numLatentConfounders, double alpha, double beta, double delta_in, double delta_out) Generates a random scale-free graph.static GraphGraphTransforms.randomZhangMagFromPag(Graph pag) Convenience overload with a freshRandom; use the seeded overload for reproducibility.static GraphGraphTransforms.randomZhangMagFromPag(Graph pag, Random random) Returns a random Zhang MAG of a PAG.static GraphGraphSaveLoadUtils.readerToGraphJson(Reader reader) readerToGraphJson.static GraphGraphSaveLoadUtils.readerToGraphRuben(Reader reader) readerToGraphRuben.static GraphGraphSaveLoadUtils.readerToGraphTxt(Reader reader) readerToGraphTxt.static GraphGraphSaveLoadUtils.readerToGraphTxt(String graphString) readerToGraphTxt.static GraphGraphUtils.removeBidirectedOrientations(Graph estCpdag) removeBidirectedOrientations.static GraphGraphUtils.replaceNodes(Graph originalGraph, List<Node> newVariables) Converts the given graph,originalGraph, to use the new variables (with the same names as the old).static GraphGraphUtils.restrictToMeasured(Graph graph) Removes all latent nodes from the graph and returns the modified graph.static GraphGraphTransforms.revertToUnshieldedColliders(Graph graph, boolean circles) Reverts the provided graph to its unshielded colliders, with other endpoints oriented either as circles (PAG case) or tails (CPDAG case).Returns a subgraph of the current graph consisting only of the specified nodes.Constructs and returns a subgraph consisting of a given subset of the nodes of this graph together with the edges between them.Constructs and returns a subgraph consisting of a given subset of the nodes of this graph together with the edges between them.Constructs and returns a subgraph consisting of a given subset of the nodes of this graph together with the edges between them.Constructs and returns a subgraph consisting of a given subset of the nodes of this graph together with the edges between them.Returns a subgraph of the current graph based on the provided nodes.static GraphTrims the given graph based on the specified trimming style.static GraphGraphUtils.undirectedGraph(Graph graph) undirectedGraph.static GraphGraphUtils.undirectedToBidirected(Graph graph) Converts an undirected graph to a bidirected graph.static GraphGraphTransforms.zhangMagFromPag(Graph pag) Transforms a partial ancestral graph (PAG) into a maximal ancestral graph (MAG) using Zhang's 2008 Theorem 2.Methods in edu.cmu.tetrad.graph that return types with arguments of type GraphModifier and TypeMethodDescriptionGraphTransforms.generateCpdagDags(Graph cpdag, boolean orientBidirectedEdges) Generates the list of DAGs in the given cpdag.GraphTransforms.getAllGraphsByDirectingUndirectedEdges(Graph skeleton) Returns a list of all possible graphs obtained by directing undirected edges in the given graph.GraphTransforms.getDagsInCpdagMeek(Graph cpdag, Knowledge knowledge) Retrieves a list of directed acyclic graphs (DAGs) within the given completed partially directed acyclic graph (CPDAG) using the Meek rules.ConsistentDagIterator.iterator()LegEnumerator.iterator()GraphTransforms.zhangMagsFromPag(Graph pag) Lazily enumerates the Zhang MAGs of a PAG: one MAG per consistent DAG orientation of the PAG's unoriented component.Methods in edu.cmu.tetrad.graph with parameters of type GraphModifier and TypeMethodDescriptionstatic voidGraphUtils.addEdgeSpecializationMarkup(Graph graph) Adds markups for edge specializations for the edges in the given graph.static voidGraphUtils.addForbiddenReverseEdgesForDirectedEdges(Graph graph, Knowledge knowledge) Adds forbidden reverse edges for directed edges in the given graph based on the knowledge.static voidRandomGraph.addTwoCycles(Graph graph, int numTwoCycles) addTwoCycles.booleanTriple.alongPathIn(Graph graph) alongPathIn.GraphUtils.anteriority(Graph G, Node... x) Computes the anteriority of the given nodes in a graph.static booleanGraphUtils.applyForbiddenCircleResolution(Graph pag, Knowledge knowledge) Resolves forbidden circles in the given partially oriented graph (PAG) based on the provided knowledge.static voidLayoutUtil.arrangeByLayout(Graph graph, HashMap<String, PointXy> layout) arrangeByLayout.static booleanLayoutUtil.arrangeBySourceGraph(Graph resultGraph, Graph sourceGraph) Arranges the nodes in the result graph according to their positions in the source graph.static booleanGraphUtils.bidirectedExistsLatentCommonCause(Edge edge, Graph trueGraph) Determines whether a bidirected edge exists due to a latent common cause in the given graph.static booleanGraphUtils.bidirectedExistsLatentCommonCauseUncovered(Edge edge, Graph trueGraph, Graph estGraph) Determines whether the given bidirected edge has a latent common cause in the true graph via a trek x <~~ L ~~> y whose source L is latent, but where at least one consecutive pair of nodes (w, r) along the trek is NOT adjacent in the estimated graph.static booleanGraphUtils.bidirectedExistsLatentConfounder(Edge edge, Graph trueGraph) Determines if the given bidirected edge has a latent confounder in the true graph--that is, whether for X <-> Y there is a latent node Z such that X <- (Z) -> Y.static GraphGraphUtils.bidirectedToUndirected(Graph graph) Converts a bidirected graph to an undirected graph.static GraphGraphTransforms.calcAdjacencyGraph(Graph dag) Calculates the adjacency graph for the given Directed Acyclic Graph (DAG).static voidLayoutUtil.circleLayout(Graph graph) Arranges the nodes in the graph in a circle, using an estimate of each node's rendered size.static voidLayoutUtil.circleLayout(Graph graph, LayoutUtil.NodeSize size) Arranges the non-latent nodes in a circle just large enough that no two node boxes overlap and, for a circle of a few nodes, an edge between any two of them would be at leastMIN_EDGE_LENGTHlong from box to box (seeMIN_EDGE_LENGTH_MAX_RADIUS), places each latent near its adjacent nodes without overlapping anything, and shifts the result so the bounding box of all node boxes sits at (LAYOUT_MARGIN,LAYOUT_MARGIN) — i.e.static booleanDetermines if the collider is allowed.static GraphGraphUtils.completeGraph(Graph graph) completeGraph.GraphUtils.connectedComponents(Graph g) Identifies all connected components in a given graph.static booleanGraphUtils.containsBidirectedEdge(Graph graph) Checks if a given graph contains a bidirected edge.static nu.xom.ElementGraphSaveLoadUtils.convertToXml(Graph graph) convertToXml.static intGraphUtils.countAdjErrors(Graph graph1, Graph graph2) Counts the adjacencies that are in graph1 but not in graph2.static GraphGraphTransforms.dagFromCpdag(Graph graph) Converts a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG).static GraphGraphTransforms.dagFromCpdag(Graph graph, boolean verbose) Converts a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG).static GraphGraphTransforms.dagFromCpdag(Graph graph, boolean meekPreventCycles, boolean verbose) Converts a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG).static GraphGraphTransforms.dagFromCpdag(Graph graph, Knowledge knowledge) dagFromCpdag.static GraphGraphTransforms.dagFromCpdag(Graph cpdag, Knowledge knowledge, boolean verbose) Returns a random DAG from the given CPDAG.static GraphGraphTransforms.dagToCpdag(Graph dag) Returns the completed partially directed acyclic graph (CPDAG) for a given directed acyclic graph (DAG).static @NotNull GraphConverts a Directed Acyclic Graph (DAG) to a Maximal Ancestral Graph (MAG) by adding arrows to the edges.static @NotNull GraphConverts a Directed Acyclic Graph (DAG) to a Partial Ancestral Graph (PAG) using the DagToPag algorithm.static GraphConverts a Directed Acyclic Graph (DAG) to a Partial Ancestral Graph (PAG).static GraphGraphTransforms.dagToPag(Graph graph, Knowledge knowledge, boolean excludeSelectionBias, int recursiveDepth) Converts a Directed Acyclic Graph (DAG) to a Partial Ancestral Graph (PAG) using the provided DAG and knowledge.static GraphGraphTransforms.dcgToCcdPag(Graph graph) Returns the graph CCD is meant to recover from a directed cyclic graph (DCG): the cyclic PAG of its d-separation equivalence class, with CCD's underline and dotted-underline annotations.static voidLayoutUtil.defaultLayout(Graph graph) Arranges the nodes in the graph by the default layout (seeLayoutUtil.setDefaultLayout(DefaultLayout)), with estimated node sizes.static voidLayoutUtil.defaultLayout(Graph graph, LayoutUtil.NodeSize size) Arranges the nodes in the graph by the default layout (seeLayoutUtil.setDefaultLayout(DefaultLayout)), with the given node sizes for the layouts that use them.static voidLayoutUtil.defaultLayoutConditional(Graph graph) Arranges the nodes using the default layout unless they all have positions already.static intCalculates the maximum degree of a graph.static GraphGraphUtils.detachNodes(Graph graph) Returns a copy of the graph whose nodes are fresh objects (seeGraphUtils.copyNode(Node)), equal to the originals and in the same positions, with the same edges (including their properties, edge type probabilities, and display attributes), underlines, ambiguous triples, and graph attributes.Calculates the district of a given node in a graph.Returns D-SEP(x, y) for a MAG G.Returns D-SEP(x, y) for a MAG G (or inducing path graph G, as in Causation, Prediction and Search).Returns D-SEP(x, y) for a MAG G.GraphUtils.dsepReachability(Node x, Node y, Graph G) Returns D-SEP(x, y) for a MAG G.static int[][]GraphUtils.edgeMisclassificationCounts(Graph leftGraph, Graph topGraph, boolean print) Computes the misclassification counts for each edge in the given graphs.static StringMisclassificationUtils.edgeMisclassifications(Graph estGraph, Graph refGraph) edgeMisclassifications.static StringMisclassificationUtils.endpointMisclassification(Graph estGraph, Graph refGraph) endpointMisclassification.static @NotNull GraphGraphUtils.fixDirections(Graph graph) Processes the given graph by fixing the directions of edges to ensure consistency, flipping edges where necessary, and optionally preserving ancillary graph information.static voidRandomGraph.fixLatents1(int numLatentConfounders, Graph graph) fixLatents1.static voidRandomGraph.fixLatents4(int numLatentConfounders, Graph graph) Adjusts the latent nodes in the given graph based on the specified number of latent confounders.static LegEnumeratorSeeds the enumeration from the canonical Zhang MAG of a PAG, which is a LEG.static voidLayoutUtil.fruchtermanReingoldLayout(Graph graph) fruchtermanReingoldLayout.static voidLayoutUtil.fruchtermanReingoldLayout(Graph graph, double naturalEdgeLength) Fruchterman-Reingold with a chosen natural edge length: the distance at which the textbook pull along an edge and push between its two endpoints balance.GraphTransforms.generateCpdagDags(Graph cpdag, boolean orientBidirectedEdges) Generates the list of DAGs in the given cpdag.static GraphGraphUtils.getAdjacencySubgraphWithTargetNode(Graph graph, Node target) Calculates the subgraph over the adjacency of a target node for a DAG, CPDAG, MAG, or PAG.GraphTransforms.getAllGraphsByDirectingUndirectedEdges(Graph skeleton) Returns a list of all possible graphs obtained by directing undirected edges in the given graph.GraphUtils.getAmbiguousTriplesFromGraph(Node node, Graph graph) Retrieves the list of ambiguous triples from the given graph for a given node.static NodeGraphUtils.getAssociatedNode(Node errorNode, Graph graph) Returns the associated node for the given error node in the specified graph.GraphSaveLoadUtils.getCollidersFromGraph(Node node, Graph graph) getCollidersFromGraph.static GraphGraphUtils.getComparisonGraph(Graph graph, Parameters params) Returns a comparison graph based on the specified parameters.static GraphGenerates a directed acyclic graph (DAG) based on the given list of nodes using Raskutti and Uhler's method.GraphTransforms.getDagsInCpdagMeek(Graph cpdag, Knowledge knowledge) Retrieves a list of directed acyclic graphs (DAGs) within the given completed partially directed acyclic graph (CPDAG) using the Meek rules.static intReturns the maximum degree of a graph.GraphUtils.getDottedUnderlinedTriplesFromGraph(Node node, Graph graph) Retrieves the list of dotted and underlined triples from the given graph, with the specified node as the middle node.static GraphGraphUtils.getGraphWithoutXToY(Graph G, Node x, Node y, GraphUtils.GraphType graphType) Returns a graph that is obtained by removing the edge from node x to node y from the input graph.static intGraphUtils.getIndegree(Graph graph) Calculates the maximum indegree in a given graph.static GraphGraphUtils.getMarkovBlanketSubgraphWithTargetNode(Graph graph, Node target) Calculates the subgraph over the Markov blanket of a target node for a DAG, CPDAG, MAG, or PAG.static intGraphUtils.getNumCoveringAdjacenciesInPag(Graph trueGraph, Graph estGraph) Returns the number of covering edges in the given estimated partial ancestral graph (PAG) with respect to the given true PAG.static intGraphUtils.getNumInducedAdjacenciesInPag(Graph trueGraph, Graph estGraph) Calculates the number of induced adjacencies in the given estiamted Partial Ancestral (PAG) with respect to the given true PAG.Paths.getParents(List<Node> pi, int p, Graph g, boolean verbose, boolean excludeSelectionBias) Returns the parents of the node at index p, calculated using Pearl's method.static GraphGraphUtils.getParentsSubgraphWithTargetNode(Graph graph, Node target) Calculates the subgraph over the parents of a target node for a DAG, CPDAG, MAG, or PAG.static @NotNull GraphGraphUtils.getReplicatingGraph(Graph graph) Creates a replicating graph based on the provided graph.static NodeGraphUtils.getTrekSource(Graph graph, List<Node> trek) This method returns the source node of a given trek in a graph.static GraphUtils.TwoCycleErrorsGraphUtils.getTwoCycleErrors(Graph trueGraph, Graph estGraph) Returns the TwoCycleErrors object that represents errors for direct feedback loops.GraphUtils.getUnderlinedTriplesFromGraph(Node node, Graph graph) Retrieves the underlined triples from the given graph that involve the specified node.static StringGraphUtils.graphAttributesToText(Graph graph, String title) Converts the attributes of a given graph into a text format.static StringGraphUtils.graphEdgesToText(Graph graph, String title) Converts the edges of a graph to text representation.static StringGraphUtils.graphNodeAttributesToText(Graph graph, String title, char delimiter) Converts the attributes of nodes in a graph to text format.static StringGraphUtils.graphNodesToText(Graph graph, String title, char delimiter) Converts the nodes of a graph to a formatted text representation.static StringGraphSaveLoadUtils.graphRMatrixTxt(Graph graph) graphRMatrixTxt.static StringGraphSaveLoadUtils.graphToAmatCpdag(Graph g) Converts a given graph into an adjacency matrix in CPAG format.static StringGraphSaveLoadUtils.graphToAmatPag(Graph g) Saves a PAG in the "amat.pag" format of PCALG.static StringGraphSaveLoadUtils.graphToDot(Graph graph) Converts a graph to a Graphviz .dot filestatic voidGraphSaveLoadUtils.graphToDot(Graph graph, File file) graphToDot.static StringGraphSaveLoadUtils.graphToJson(Graph graph) Converts a graph object to a JSON-formatted string.static StringGraphSaveLoadUtils.graphToLavaan(Graph g) graphToLavaan.static StringGraphSaveLoadUtils.graphToPcalg(Graph g) graphToPcalg.static StringGraphSaveLoadUtils.graphToXml(Graph graph) graphToXml.static GraphGraphUtils.guaranteePag(Graph pag, FciOrient fciOrient, Knowledge knowledge, Set<Triple> knownColliders, boolean verbose, Set<Node> selection, boolean excludeSelectionBias, int recursiveDepth) Guarantees the correctness of a Partial Ancestral Graph (PAG) by repairing faulty structures such as cycles, violations of maximality, and incorrectly oriented edges, using FCI orientation rules and knowledge constraints.static booleanGraphUtils.isClique(Collection<Node> set, Graph graph) Checks if the given set of nodes forms a clique in the specified graph.static booleanChecks if the given trek in a graph is a confounding trek.static booleanGraphUtils.isCoveringAdjacency(Graph trueGraph, Graph estGraph, Node x, Node y) Determines whether an edge between two nodes in the estimated graph is covering a collider or noncollider in the true graph.static booleanDetermines if the given graph is a directed acyclic graph (DAG).static booleanLayoutUtil.isLaggedGraph(Graph graph) Returns true if the graph is a lagged (time-series) graph, i.e., at least one node has a positive lag index in its name.booleanCheck to see if a set of variables Z satisfies the back-door criterion relative to node x and node y.static voidLayoutUtil.kamadaKawaiLayout(Graph graph, boolean randomlyInitialized, double naturalEdgeLength, double springConstant, double stopEnergy) kamadaKawaiLayout.static voidLayoutUtil.kamadaKawaiLayout(Graph graph, boolean randomlyInitialized, double naturalEdgeLength, double springConstant, double stopEnergy, LayoutUtil.LayoutProgressListener listener) Overload that accepts an optional progress listener.static voidLayoutUtil.layoutByCausalOrder(Graph graph) Lays the graph out in rows by causal order, using an estimate of each node's rendered size.static voidLayoutUtil.layoutByCausalOrder(Graph graph, LayoutUtil.NodeSize size) Lays the graph out in rows by causal order: the nodes with no parents in the top row, then the nodes all of whose parents are above, and so on down.static voidLayoutUtil.layoutByKnowledgeIndices(Graph graph) Arranges the nodes of the given graph in tiers based on numerical indices derived from the node names, and positions them accordingly in a 2D layout.static voidLayoutUtil.layoutByKnowledgeTiers(Graph graph, Knowledge knowledge) Arranges the nodes of the given graph in tiers based on their grouping as defined in the provided knowledge object.static LinkedList<Triple> GraphUtils.listColliderTriples(Graph graph) Generates a list of triples where a node acts as a collider in a given graph.static StringGraphSaveLoadUtils.loadGraphRMatrix(Graph graph) loadGraphRMatrix.static StringGraphSaveLoadUtils.loadGraphTxt(Graph graph, boolean pagEdgeSpecializationMarked) Converts a given graph to human-readable text format.static doubleGraphUtils.localMarkovInitializePValues(Graph dag, boolean preserveMarkov, IndependenceTest test, Map<org.apache.commons.lang3.tuple.Pair<Node, Node>, Set<Double>> pValues) Initializes and evaluates p-values for local Markov properties in a given graph.static GraphConverts a maximal ancestral graph (MAG) into a partial ancestral graph (PAG).GraphUtils.markovBlanket(Node x, Graph G) Computes the Markov blanket for a given node in a graph.static GraphGraphUtils.markovBlanketSubgraph(Node target, Graph graph) Calculates the subgraph over the Markov blanket of a target node in a given DAG, CPDAG, MAG, or PAG.GraphUtils.maximalCliques(Graph graph, List<Node> nodes) Finds all maximal cliques in a given graph.static GraphCreates a new instance of a Graph based on the given graph.static GraphGraphUtils.nondirectedGraph(Graph graph) undirectedGraph.static GraphGraphTransforms.noUnshieldedColliderDag(Graph und) Orients an undirected chordal graph into a DAG with no unshielded colliders by directing every edge from the earlier to the later endpoint of a Maximum Cardinality Search order.LayoutUtil.orderRowsToReduceCrossings(Graph graph, List<List<Node>> rows) Orders the nodes within each of the given rows to reduce the crossings of the edges between rows, by the ordering step of Richard's layout (seeLayoutUtil.orderTiers(Graph, List, List)).static voidGraphUtils.orientCollider(Graph g, Node x, Node z, Node y) Orients the edges of the given graph by setting both specified nodes as arrow endpoints directed towards the specified target node.static StringGraphUtils.pathString(Graph graph, Node... x) Generates a string representation of a path in a given graph, starting from the specified nodes.static StringGraphUtils.pathString(Graph graph, List<Node> path, boolean showBlocked) Constructs a string representation of a path in a graph.static StringReturns a string representation of the given path in the graph, considering the conditioning variables.static StringGraphUtils.pathString(Graph graph, List<Node> path, Set<Node> conditioningVars, boolean showBlocked, boolean excludeSelectionBias) Returns a string representation of the given path in the graph, with additional information about conditioning variables.static StringTriple.pathString(Graph graph, Node x, Node y, Node z) pathString.static GraphGraphTransforms.randomZhangMagFromPag(Graph pag) Convenience overload with a freshRandom; use the seeded overload for reproducibility.static GraphGraphTransforms.randomZhangMagFromPag(Graph pag, Random random) Returns a random Zhang MAG of a PAG.static voidGraphUtils.recallInitialColliders(Graph pag, Set<Triple> initialColliders, Knowledge knowledge) Recall unshielded triples in a given graph.static GraphGraphUtils.removeBidirectedOrientations(Graph estCpdag) removeBidirectedOrientations.static voidGraphUtils.removeNonSkeletonEdges(Graph graph, Knowledge knowledge) Removes non-skeleton edges from the given graph based on the provided knowledge.static voidGraphUtils.reorientWithCircles(Graph pag, boolean verbose) Reorients all edges in a Graph as o-o.static booleanGraphUtils.repairMaximality(Graph pag, boolean verbose, Set<Node> selection, FciOrient fciOrient, Knowledge knowledge, Set<Triple> knownColliders) Repairs the maximality of a PAG (Partial Ancestral Graph) by ensuring that any inducing path between two nodes not currently adjacent in the graph results in an added non-directed edge.static GraphGraphUtils.replaceNodes(Graph originalGraph, List<Node> newVariables) Converts the given graph,originalGraph, to use the new variables (with the same names as the old).GraphUtils.replaceNodes(List<Node> originalNodes, Graph graph) Converts the given list of nodes,originalNodes, to use the replacement nodes for them by the same name in the givengraph.static voidLayoutUtil.repositionLatents(Graph graph) Repositions latent nodes in the given graph based on their non-latent neighbors.static voidLayoutUtil.repositionLatents(Graph graph, LayoutUtil.NodeSize size) Places each latent near its adjacent nodes without overlapping any other node's box.static GraphGraphUtils.restrictToMeasured(Graph graph) Removes all latent nodes from the graph and returns the modified graph.static GraphGraphTransforms.revertToUnshieldedColliders(Graph graph, boolean circles) Reverts the provided graph to its unshielded colliders, with other endpoints oriented either as circles (PAG case) or tails (CPDAG case).static voidLayoutUtil.richardsLayout(Graph graph) Arranges the graph the way Richard lays out a graph for presentation: layered by causal depth, with each layer shifted a bit further right than the one above it, so that the flow reads down and to the right, and with within-layer orderings chosen by barycenter sweeps to reduce edge crossings.static voidLayoutUtil.richardsLayout(Graph graph, LayoutUtil.NodeSize size) Richard's layout with the given node sizes and default spacing: a 30 px horizontal gap between node boxes, 90 px between layer centerlines, and a 50 px rightward shear per layer.static voidLayoutUtil.richardsLayout(Graph graph, LayoutUtil.NodeSize size, double xGap, double yGap, double shearPerLayer) Richard's layout, fully parameterized.static voidLayoutUtil.richardsLayout(Graph graph, LayoutUtil.NodeSize size, double xGap, double yGap, double shearPerLayer, boolean nudge) Richard's layout, with the nudge pass switchable.static voidsaveGraph.voidEdgeListGraph.setAncillaryGraph(String name, Graph graph) Sets an ancillary graph with the given name.static voidLayoutUtil.squareLayout(Graph graph) squareLayout.GraphUtils.stronglyConnectedComponents(Graph g) Compute strongly connected components (SCCs) of a directed graph.voidDag.transferAttributes(Graph graph) Transfers attributes from the given graph to the current graph.voidEdgeListGraph.transferAttributes(Graph graph) transferAttributes.voidGraph.transferAttributes(Graph graph) transferAttributes.voidLagGraph.transferAttributes(Graph graph) transferAttributes.voidSemGraph.transferAttributes(Graph graph) transferAttributes.voidTimeLagGraph.transferAttributes(Graph graph) Transfers attributes from the given graph to the current graph.voidDag.transferNodesAndEdges(Graph graph) Transfers nodes and edges from the given graph to the current graph.voidEdgeListGraph.transferNodesAndEdges(Graph graph) Transfers nodes and edges from one graph to another.voidGraph.transferNodesAndEdges(Graph graph) Transfers nodes and edges from one graph to another.voidLagGraph.transferNodesAndEdges(Graph graph) Transfers nodes and edges from one graph to another.voidSemGraph.transferNodesAndEdges(Graph graph) Transfers nodes and edges from one graph to another.voidTimeLagGraph.transferNodesAndEdges(Graph graph) Transfers nodes and edges from the given graph to the current graph.static voidGraphTransforms.transformCpdagIntoDag(Graph graph, Knowledge knowledge, boolean verbose) Transforms a completed partially directed acyclic graph (CPDAG) into a directed acyclic graph (DAG) by orienting the undirected edges in the CPDAG.static booleanGraphUtils.trekIsUncovered(Graph trueGraph, Graph estGraph, List<Node> trek) Checks whether the given trek is "uncovered" relative to the estimated graph in the following sense: every consecutive pair along the trek is adjacent in the true graph, and among the consecutive pairs whose BOTH endpoints are measured, at least one is non-adjacent in the estimated graph.static booleanChecks if the souce L of the given trek in a graph (not equal to x or y) is a latent.static GraphTrims the given graph based on the specified trimming style.static booleanChecks if three nodes are connected in a graph.static GraphGraphUtils.undirectedGraph(Graph graph) undirectedGraph.static GraphGraphUtils.undirectedToBidirected(Graph graph) Converts an undirected graph to a bidirected graph.GraphUtils.visibleEdgeAdjustments1(Graph G, Node x, Node y, int numSmallestSizes, GraphUtils.GraphType graphType) Calculates visual-edge adjustments given graph G between two nodes x and y that are subsets of MB(X).GraphUtils.visibleEdgeAdjustments3(Graph G, Node x, Node y, int numSmallestSizes, GraphUtils.GraphType graphType) This method calculates visible-edge adjustments for a given graph, two nodes, a number of smallest sizes, and a graph type.static GraphGraphTransforms.zhangMagFromPag(Graph pag) Transforms a partial ancestral graph (PAG) into a maximal ancestral graph (MAG) using Zhang's 2008 Theorem 2.GraphTransforms.zhangMagsFromPag(Graph pag) Lazily enumerates the Zhang MAGs of a PAG: one MAG per consistent DAG orientation of the PAG's unoriented component.Method parameters in edu.cmu.tetrad.graph with type arguments of type GraphModifier and TypeMethodDescriptionstatic StringGraphUtils.getIntersectionComparisonString(List<Graph> graphs) Generates a comparison string for the intersection of multiple graphs.Constructors in edu.cmu.tetrad.graph with parameters of type GraphModifierConstructorDescriptionConsistentDagIterator(Graph graph) Enumerate distinct extensions, preferring the graph's own node order (forward).ConsistentDagIterator(Graph graph, List<Node> initialOrder, boolean forward, boolean distinct) Iterates over DAGs consistent with a given CPDAG.Constructs a new directed acyclic graph from the given graph object.EdgeListGraph(Graph graph) Constructs a EdgeListGraph using the nodes and edges of the given graph.EdgeListGraph(Graph graph, boolean copyNodes) Constructs a copy of the given graph, optionally with its own node objects.FruchtermanReingoldLayout(Graph graph) Constructs a new FruchtermanReingoldLayout for the given graph.KamadaKawaiLayout(Graph graph) Constructs a new Kamada-Kawai layout for the given graph.LegEnumerator(Graph startLeg) Enumerates over LEGs starting wiht the given LEG.Constructor for Paths.ReplicatingGraph(Graph g, EdgeReplicationPolicy policy) Creates a newReplicatingGraphby copying the structure and attributes from the provided graph and applying the specified edge replication policy.Constructs a new SemGraph from the nodes and edges of the given graph.Underlines(Graph graph) Constructor for Underlines.ValidOrderIterator(Graph graph) Enumerate preferring the graph's own node order (forward).ValidOrderIterator(Graph graph, List<Node> initialOrder, boolean forward) Iterates over valid orders for a CPDAG. -
Uses of Graph in edu.cmu.tetrad.hybridcg
Methods in edu.cmu.tetrad.hybridcg that return GraphModifier and TypeMethodDescriptionstatic GraphHybridCgEdgeStrengths.coloredGraph(HybridCgModel.HybridCgIm im) Returns a copy of the IM's graph (sharing node objects, with new edge objects) whose edges carry a line color and a tooltip annotation reflecting their strength.static GraphHybridCgEdgeStrengths.coloredGraph(HybridCgModel.HybridCgIm im, boolean dark) AsHybridCgEdgeStrengths.coloredGraph(HybridCgIm), with the edge colors chosen for a light or a dark canvas; seeEdgeShading.color(EdgeShading.Hue, double, boolean).HybridCgModel.HybridCgPm.getGraph()Retrieves the directed acyclic graph (DAG) associated with this model.HybridCgPruneReport.getPrunedGraph()The proposed graph: the input graph minus the deleted edges.Methods in edu.cmu.tetrad.hybridcg with parameters of type GraphModifier and TypeMethodDescriptionstatic HybridCgModel.HybridCgPmHybridCgEdgeSignificance.pmForGraph(HybridCgModel.HybridCgPm src, Graph g) Builds a PM over the given graph with the typing, categories, and node order ofsrc, carrying over cutpoints for whichever continuous parents each discrete child retains.Constructors in edu.cmu.tetrad.hybridcg with parameters of type GraphModifierConstructorDescriptionHybridCgPm(Graph dag, List<Node> nodeOrder, Map<Node, Boolean> discreteFlags, Map<Node, List<String>> categoryMap) Constructs a HybridCgPm instance based on the provided directed acyclic graph (DAG), node ordering, discrete flags for nodes, and a mapping of node categories.HybridCgPruneReport(List<HybridCgPruneReport.Deletion> deletions, List<String> untested, Graph prunedGraph, double alpha, boolean shareVariance) Constructs a prune report. -
Uses of Graph in edu.cmu.tetrad.regression
Methods in edu.cmu.tetrad.regression that return GraphModifier and TypeMethodDescriptionRegression.getGraph()getGraph.RegressionCovariance.getGraph()Getter for the fieldgraph.RegressionDataset.getGraph()Getter for the fieldgraph.Methods in edu.cmu.tetrad.regression with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.search
Fields in edu.cmu.tetrad.search declared as GraphModifier and TypeFieldDescriptionfinal GraphTwoStep.Result.graphA directed graph representing the relationships between variables as inferred from the coefficient matrix after pruning.Methods in edu.cmu.tetrad.search that return GraphModifier and TypeMethodDescriptionVertexRepairSearch.applyEdit(VertexRepairSearch.CandidateEdit cand) Applies the given candidate edit to the working graph and returns the resulting graph (ornullif the edit could not be applied).Applies the specifiedCandidateEditoperation to the given graph.MarkovCheckNullReference.Result.getDag()The DAG actually checked (after any CPDAG-to-DAG conversion).MimbuildTrek.getFullGraph()Deprecated.The full graph discovered.GacTotalEffectElibility.getGraph()Retrieves the causal graph associated with this instance.Grasp.getGraph(boolean cpdag) Returns the graph based on the specified parameters.GRegression.getGraph()Returns the MPDAG.Icd.getGraph()Retrieves the graph associated with the current instance.IdaCheck.getGraph()Returns a copy of the graph associated with this instance.static GraphConstruct a graph given a specification of the parents for each node.static GraphPermutationSearch.getGraph(List<Node> nodes, Map<Node, Set<Node>> parents, Knowledge knowledge, boolean cpDag) Constructs a graph given a specification of the parents for each node.static GraphPermutationSearch.getGraph(List<Node> nodes, Map<Node, Set<Node>> parents, Knowledge knowledge, boolean cpdag, boolean replicating) Constructs a graph given a specification of the parents for each node.static GraphConstruct a graph given a specification of the parents for each node.static GraphPermutationSearchTopK.getGraph(List<Node> nodes, Map<Node, Set<Node>> parents, Knowledge knowledge, boolean cpDag) Constructs a graph given a specification of the parents for each node, with graph replication disabled.static GraphPermutationSearchTopK.getGraph(List<Node> nodes, Map<Node, Set<Node>> parents, Knowledge knowledge, boolean cpdag, boolean replicating) Constructs a graph given a specification of the parents for each node.VertexRepairSearch.getGraph()Returns the current working graph (may be updated during search).GRegressionPag.getMag()Returns the MAG that was fitted.Bfci.getMarkovCpdag(boolean verbose) Executes the Markov CPDAG search algorithm using the BOSS (Best Order Score Search) method and returns the resulting graph.BfciC.getMarkovCpdag(boolean verbose) Executes the Markov CPDAG search algorithm using the BOSS (Best Order Score Search) method and returns the resulting graph.BfciD.getMarkovCpdag(boolean verbose) Executes the Markov CPDAG search algorithm using the BOSS (Best Order Score Search) method and returns the resulting graph.Gfci.getMarkovCpdag(boolean verbose) Executes the FGES algorithm to compute the Markov equivalence class in the form of a completed partially directed acyclic graph (CPDAG) based on the provided score and algorithm configuration (paper, Alg.GfciOld.getMarkovCpdag()Executes the FGES algorithm to compute the Markov equivalence class in the form of a completed partially directed acyclic graph (CPDAG) based on the provided score and algorithm configuration.@NotNull GraphGraspFci.getMarkovCpdag(boolean verbose) SpFci.getMarkovCpdag(boolean verbose) Executes the SP algorithm to compute the Markov equivalence class in the form of a completed partially directed acyclic graph (CPDAG) based on the provided score and algorithm configuration.abstract GraphStarFci.getMarkovCpdag(boolean verbose) Returns the initial Markov model for the search: a CPDAG that is Markov to the data (paper, Alg.abstract GraphStarFciB.getMarkovCpdag(boolean verbose) Returns the initial Markov model for the search: a CPDAG that is Markov to the data or the underlying generative model (paper, Alg.abstract GraphStarFciC.getMarkovCpdag(boolean verbose) Returns the initial Markov model for the search: a CPDAG that is Markov to the data or the underlying generative model (paper, Alg.abstract GraphStarFciD.getMarkovCpdag(boolean verbose) Returns the initial Markov model for the search: a CPDAG that is Markov to the data or the underlying generative model (paper, Alg.final GraphStarFciGuaranteePag.getMarkovCpdag(boolean verbose) Deprecated.Bridges the renamed abstract method: delegates toStarFciGuaranteePag.getMarkovDag(boolean), the abstract method of this class before the rename, so existing subclasses keep working unchanged.abstract GraphStarFciOriginal.getMarkovCpdag(boolean verbose) Returns the initial Markov model for the search: a CPDAG that is Markov to the data or the underlying generative model (paper, Alg.BfciScoreCheck.getMarkovDag(boolean verbose) Runs BOSS to obtain the Markov CPDAG (as in Bfci).abstract GraphStarFciGuaranteePag.getMarkovDag(boolean verbose) Deprecated.abstract GraphStarFciKeepKnowledgeOrientations.getMarkovDag(boolean verbose) Deprecated.Constructs and returns the Markov Directed Acyclic Graph (DAG) representing the probabilistic relationships between variables.PermutationSearchTopK.getModelGraph(int i) Returns the graph of the i-th top permutation (0 = highest scoring), built with the same graph-construction method used for the top model, honoring the current cpdag and replicating-graph flags and the current knowledge.GRegressionPag.getPag()Returns the PAG.Rlcd.getStage1Graph()Returns the stage-1 graph.Cstar.makeGraph(List<Cstar.Record> records) Makes a graph of the estimated predictors to the effect.static @NotNull GraphConstructs a directed graph based on the input binary adjacency matrix and a list of nodes.Pairwise.orient()Orients the graph and returns the oriented graph.static GraphMarkovCheck.prepareMagForVertexFacts(Graph graph, ConditioningSetType setType) Precomputes the graph-level transform (the MAG) used by the ordered-local-Markov conditioning types, so that callers evaluating facts for many vertices of the same graph can run the graph-type legality checks and the CPDAG-to-DAG-to-MAG conversion once rather than once per vertex.LatentPurifier.purify()Purifies the graph by ensuring that each measured variable has at most one latent parent and removes latent variables that have no measured children.VertexRepairSearch.repairNode(Node node) Repairs the graph at one vertex only: repeatedly applies the top-ranked candidate edit at that vertex until none improves on the current graph.PcMb.resultGraph()Returns the result graph.BfciBryan.search()Runs the search and returns the PAG.BfciBryanScore.search()Runs the search and returns the PAG.BfciScoreCheck.search()Runs the search and returns the PAG.BossCcd.search()Runs BOSS to obtain a CPDAG, extracts its skeleton, and runs CCD with that skeleton as an adjacency superstructure.Cam.search()Executes the CAM (Causal Additive Model) algorithm to search for an optimal directed acyclic graph (DAG) structure that best fits the data.Ccd.search()Executes the CCD search algorithm to infer a causal graph based on statistical independence tests.Cdnod.search()CdnodBoss.search()Dagma.search()Performs a search algorithm to find a graph representation.DirectLingam.search()Executes DirectLiNGAM and returns the learned graph.Fas.search()Performs a conditional independence graph search using the default set of variables from the initialized independence test.Searches for conditional independence relationships in a graph constructed from the given list of nodes.Fasd.search()Discovers all adjacencies in data.Fask.search()Executes the FASK (Fast Adjacency Skewness) algorithm to search for a causal graph based on the provided dataset, knowledge, and configurations.FaskOrig.search()Deprecated.Runs the search on the concatenated data, returning a graph, possibly cyclic, possibly with two-cycles.FaskPool.search(Parameters parameters) Runs the search and returns the composite graph.FaskVote.search(Parameters parameters) Runs the search and returns the composite graph.Fci.search()Searches and retrieves a graph using the specified algorithm.Executes the search process using the provided `IFas` implementation and performs various graph orientation and refinement steps based on the FCI algorithm.Fcit.search()Run the search and return a PAG.Fcit2.search()Run the search and return a PAG.FcitKeepKnowledgeOrientations.search()Run the search and return a PAG.FcitMagMarkov.search()Run the search and return a PAG.FcitMarkov.search()Run the search and return a PAG.FcitSl.search()Run the search and return a PAG.FcitSl2.search()Run the search and return a PAG.FcitSlKeepKnowledgeOrientations.search()Run the search and return a PAG.FcitSlScoreCheck.search()Run the search and return a PAG.FcitZm.search()Run the search and return a PAG.FcitZm2.search()Run the search and return a PAG.FcitZmKeepKnowledgeOrientations.search()Run the search and return a PAG.Fges.search()Greedy equivalence search: Start from the empty graph, add edges until the model is significant.Greedy equivalence search: Start from the empty graph, add edges till the model is significant.Flop.search()Runs the search and returns the estimated CPDAG.GfciOld.search()Runs the graph and returns the search PAG.Gmas.search()Runs the search.Icd.search()Runs ICD to completion and returns the resulting PAG.IFas.search()Run adjacency search and return the skeleton graph.IGraphSearch.search()Runs the search and returns a graph.LatentParentRecovery.search()Runs latent-parent recovery and returns the augmented graph.LvHeuristic.search()Run the search and return s a PAG.MimbuildBollen.search()Executes a search operation to build and optimize a graphical structure based on the covariance of latent and measured variables.MimbuildPca.search()Executes a search algorithm to identify a structural dependency graph based on block-specific data and principal components analysis (PCA).MimbuildTrek.search(List<List<Node>> clustering, List<String> latentNames, ICovarianceMatrix measuresCov) Deprecated.Does the search and returns the graph.Pc.search()Performs a search operation based on the test variables associated with the instance.Performs a search to generate a graph structure based on the provided list of nodes.PcAR.search()Performs a search operation based on the test variables associated with the instance.Performs the search over the given nodes.Pcd.search()Runs PC starting with a complete graph over all nodes of the given conditional independence test, using the given independence test and knowledge and returns the resultant graph.Searches for a graph using the given IFas instance and list of nodes.Runs PC starting with a complete graph over the given list of nodes, using the given independence test and knowledge and returns the resultant graph.PcMb.search()Searches for the Markov blanket CPDAG for the given targets.Searches for the MB CPDAG for the given targets.Pcmci.search()Executes the PCMCI (Peter and Clark Momentary Conditional Independence) algorithm to discover causal relationships in time series data.PermutationSearch.search()Performs a search for a graph using the default options.PermutationSearch.search(boolean cpdag) Performe the search and return a CPDAG.PermutationSearchTopK.search()Performs a search for a graph using the default options.PermutationSearchTopK.search(boolean cpdag) Performe the search and return a CPDAG (the top model).PooledAdjacencySearch.search(List<DataSet> standardized, Parameters parameters) Estimates the common adjacency structure over the given standardized datasets, discarding any orientations the method produces.Rfci.search()Runs the search and returns the RFCI PAG.Runs the search and returns the RFCI PAG.Searches of a specific sublist of nodes.Rlcd.search()Runs the search.StarFci.search()Runs the search and returns the PAG.StarFciB.search()Runs the graph and returns the search PAG.StarFciC.search()Runs the graph and returns the search PAG.StarFciD.search()Runs the graph and returns the search PAG.StarFciKeepKnowledgeOrientations.search()Deprecated.Runs the graph and returns the search PAG.StarFciOriginal.search()Runs the graph and returns the search PAG.Tgin.search()Deprecated.VertexRepairSearch.search()Runs the full repair sweep (using the configured strategy) and returns the repaired graph.PooledAdjacencySearch.searchWithOrientations(List<DataSet> standardized, Parameters parameters) Estimates the common adjacency structure over the given standardized datasets, retaining whatever orientations the method produces.Methods in edu.cmu.tetrad.search that return types with arguments of type GraphModifier and TypeMethodDescriptionIon.search()Runs the ION search and returns a list of compatible graphs.Methods in edu.cmu.tetrad.search with parameters of type GraphModifier and TypeMethodDescriptionGRegression.ancestorsAvoiding(Graph graph, Node y, Set<Node> excluded) Returns the ancestors of y in the subgraph of the graph induced by V \ excluded, i.e., the set of nodes from which y is reachable by a directed path all of whose vertices lie outside the excluded set.Applies the specifiedCandidateEditoperation to the given graph.PcAR.MarkovAuditor.audit(Graph g, IndependenceTest test) Audits a finished graph: enumerates (some or all of) the conditional independencies the graph implies, tests each afresh against the data, and returns those the data reject.static List<IndependenceResult> MarkovAuditUtils.auditFailures(Graph graph, IndependenceTest test, ConditioningSetType setType, double q, boolean negativelyCorrelated) Runs a Markov audit ofgraphagainsttestand returns the implied independence facts rejected under Benjamini-Hochberg at levelq-- NOT the raw per-test rejections.static List<IndependenceResult> MarkovAuditUtils.auditFailures(Graph graph, IndependenceTest test, ConditioningSetType setType, double q, boolean negativelyCorrelated, Fas.DeterminismGuard guard) Audits a given graph for independence test failures and applies false discovery rate (FDR) correction at a specified level to return only significant failures.SepsetFinder.blockPathsLocalMarkov(Graph graph, Node x) Returns a set of nodes that are the parents of the given node in the graph.RecursiveBlocking.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge) Recursively blocks paths in a graph between two nodes based on specified parameters and constraints.RecursiveBlocking.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge, long deadlineMs) Single canonical entry point for separating-set search.RecursiveBlocking.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge, long deadlineMs, RecursiveBlocking.Strategy strategy) Blocks paths in a graph recursively based on the given parameters and strategy.RecursiveBlocking1.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int maxPathLength) Attempts to construct a candidate blocking set Z between nodes x and y under PAG semantics.RecursiveBlocking1.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int maxPathLength, Knowledge knowledge) Variant ofRecursiveBlocking1.blockPathsRecursively(Graph, Node, Node, Set, Set, int)that additionally accepts an optionalKnowledgeobject.RecursiveBlockingChokePointA.blockPathsRecursively(Graph G, Node x, Node y, Set<Node> forbidden, int maxPathLength) Identifies and blocks paths between two nodes in a graph recursively, ensuring that all possible open paths between the nodes are restricted by adding blocking nodes to a set.RecursiveBlockingChokePointB.blockPathsRecursively(Graph G, Node x, Node y, Set<Node> forbidden, int maxPathLength) Identifies and blocks paths in the given graph by iteratively finding and addressing chokepoints and eligible non-collider nodes.RecursiveBlockingVerbose.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int maxPathLength) Blocks paths recursively between two nodes in a graph, based on specified constraints and conditions.RecursiveBlockingVerbose.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int maxPathLength, Knowledge knowledge) Recursively blocks paths in a graph between two nodes under specified constraints.ShallowRecursiveBlocking.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge) Shallow ("near-x") separating-set search betweenxandy, with no deadline.ShallowRecursiveBlocking.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge, long deadlineMs) Shallow ("near-x") separating-set search betweenxandy.ShallowRecursiveBlockingMemo.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge) Shallow ("near-x") separating-set search, no deadline.ShallowRecursiveBlockingMemo.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge, long deadlineMs) Shallow ("near-x") separating-set search.ShallowRecursiveBlockingStack.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge) Shallow ("near-x") separating-set search, no deadline.ShallowRecursiveBlockingStack.blockPathsRecursively(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int recursiveDepth, int depth, int maxRadius, int nearWhichEndpoint, boolean ignoreDirectEdge, long deadlineMs) Shallow ("near-x") separating-set search.RecursiveBlockingVerbose.blockPathsRecursivelyVerbose(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int maxPathLength, Knowledge knowledge, PrintStream out) Blocks paths recursively between two nodes in a graph with detailed verbose tracing output.RecursiveBlockingVerbose.blockPathsRecursivelyVerbose(Graph graph, Node x, Node y, Set<Node> containing, Set<Node> notFollowed, int maxPathLength, PrintStream out) Blocks paths recursively between two nodes in a graph while tracing the process.SepsetFinder.blockPathsWithMarkovBlanket(Node x, Graph G) Identifies the set of nodes that form the Markov Blanket for a given node in a graph.static GRegression.BootstrapResultGRegression.bootstrap(Graph mpdag, DataSet data, List<Node> treatments, Node outcome, int numBootstraps) Estimates a total effect by G-regression on the full data set and estimates its sampling covariance by the nonparametric bootstrap (resampling rows with replacement), as in the eff2 R package.Estimates a total effect on the full data set and its standard error by the nonparametric bootstrap.GRegression.bucketDecomposition(Graph graph) Returns the bucket decomposition of the graph: the maximal connected components of its undirected subgraph (Section 3.4.1 of Guo and Perković, 2022).WildBootstrapMarkovCheck.checkMarkovBlanket(Graph graph) Build the stacked product matrix from the data and graph, then run the joint check.GacTotalEffectElibility.AdjustmentSetProvider.compute(Graph graph, Node x, Node y, String graphType, int maxPathLength) Computes adjustment sets based on the provided graph, pair of nodes, graph type, and maximum path length.GacTotalEffectElibility.JointAdjustmentSetProvider.compute(Graph graph, Set<Node> X, Node y, String graphType, int maxPathLength) Computes a list of sets of nodes based on the provided graph, set of nodes, target node, graph type, and maximum path length.MarkovCheckNullReference.compute(DataSet data, Graph graph, IndependenceWrapper testWrapper, Parameters parameters, ConditioningSetType conditioningSetType, MarkovCheckNullReference.SimulatorType simulator, int numDraws, int sampleSize, long baseSeed, TrainedDagSimulatorGNM.Params gnmParams) Convenience overload taking anIndependenceWrapperandParameters, matching how the Markov-check test is configured in algcomparison and in py-tetrad's TetradSearch.MarkovCheckNullReference.compute(DataSet data, Graph graph, Function<DataSet, IndependenceTest> testFactory, ConditioningSetType conditioningSetType, MarkovCheckNullReference.SimulatorType simulator, int numDraws, int sampleSize, long baseSeed, TrainedDagSimulatorGNM.Params gnmParams) Computes the null reference using a test factory.static Set<IndependenceFact> MarkovCheck.computeAllImpliedFacts(Graph g, ConditioningSetType setType) Computes all implied independence facts for the given graph based on the specified conditioning set type.static Map<String, List<IndependenceFact>> MarkovCheck.computeImpliedFactsByVertex(Graph graph, ConditioningSetType setType) Computes the implied independence facts for EVERY vertex ofgraphat once, keyed by vertex name.static List<IndependenceFact> MarkovCheck.computeImpliedFactsForVertex(Graph graph, Node x, ConditioningSetType conditioningSetType) Computes the implied independence facts for a given vertex within the specified graph based on the provided conditioning set type.static List<IndependenceFact> MarkovCheck.computeImpliedFactsForVertex(Graph graph, Node x, ConditioningSetType conditioningSetType, Graph preparedMag) Variant ofMarkovCheck.computeImpliedFactsForVertex(Graph, Node, ConditioningSetType)accepting a MAG prepared once per graph byMarkovCheck.prepareMagForVertexFacts(Graph, ConditioningSetType).static double[][]Fask.covariates(Graph graph, Node xi, Node xj, List<Node> nodes, double[][] data, int maxPathLength) Computes the covariates for a pair of nodes in a graph based on a set of orientation covariates determined up to a given maximum path length.default voidVertexRepairSearch.RepairListener.editApplied(VertexRepairSearch.CandidateEdit edit, Graph currentGraph) Called each time a candidate edit is successfully applied to the graph.static booleanVertexRepairSearch.exhibitsSelectionBias(Graph g, VertexRepairSearch.AdjustmentGraphType graphType) Returns true ifgexhibits selection bias undergraphType, the static form of the predicate used internally by this search.GRegression.externalParents(Graph graph, Collection<Node> set) Returns the external parents of a set of nodes: the union of their parents, minus the set itself.static List<IndependenceFact> MarkovCheck.factsForUniformZ(Graph g, Node x, Set<Node> z) Generates a list of independence facts for a given node with respect to a given graph and a conditioning set.RecursiveDiscriminatingPathRule.findDdpSepsetRecursive(IndependenceTest test, Graph pag, Node x, Node y, int recursiveDepth, int maxDdpPathLength, int depth, PreserveMarkov preserveMarkovHelper, long timeout) Finds a separating set for the non-adjacent nodes x and y by recursive blocking over discriminating paths, returning the first passing candidate, with no independence-check counter and the given timeout.RecursiveDiscriminatingPathRule.findDdpSepsetRecursive(IndependenceTest test, Graph pag, Node x, Node y, int recursiveDepth, int maxDdpPathLength, int depth, PreserveMarkov preserveMarkovHelper, IndependenceCheckCounter counter) Finds a separating set for the non-adjacent nodes x and y by recursive blocking over discriminating paths, returning the first passing candidate, with an independence-check counter and no timeout.RecursiveDiscriminatingPathRule.findDdpSepsetRecursive(IndependenceTest test, Graph pag, Node x, Node y, int recursiveDepth, int maxDdpPathLength, int depth, PreserveMarkov preserveMarkovHelper, IndependenceCheckCounter counter, long timeout) Finds a separating set for the non-adjacent nodes x and y by recursive blocking over discriminating paths, returning the first passing candidate.RecursiveDiscriminatingPathRule.findDdpSepsetRecursive(IndependenceTest test, Graph pag, Node x, Node y, int recursiveDepth, int maxDdpPathLength, int depth, PreserveMarkov preserveMarkovHelper, IndependenceCheckCounter counter, long timeout, boolean useMaxP) Finds a separating set for the non-adjacent nodes x and y by recursive blocking over discriminating paths, with control over how the set is chosen when more than one candidate renders x and y independent.RecursiveBlockingVerbose.findPathToTarget(Graph graph, Node a, Node b, Node y, Set<Node> path, Set<Node> z, int maxPathLength, Set<Node> notFollowed, Map<Node, Set<Node>> descendantsMap) Finds and returns a path from node 'a' to the target node 'b' in a given graph considering various constraints.RecursiveBlockingVerbose.findPathToTarget(Graph graph, Node a, Node b, Node y, Set<Node> path, Set<Node> z, int maxPathLength, Set<Node> notFollowed, Map<Node, Set<Node>> descendantsMap, RecursiveBlockingVerbose.Tracer tracer) Recursive method to find and evaluate the path between two nodes in a graph.static RecursiveBlocking1.BlockableRecursiveBlocking1.findPathToTargetVisit(Graph graph, Node a, Node b, Node y, Set<Node> path, Set<Node> z, int maxPathLength, Set<Node> notFollowed, Map<Node, Set<Node>> descendantsMap) Evaluates whether all paths from a→b onward to y can be blocked by the current candidate set Z, possibly augmented with b.SepsetFinder.findSepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth) Returns the sepset that contains the greedy test for variables x and y in the given graph.CheckKnowledge.forbiddenViolations(Graph graph, Knowledge knowledge) Returns a sorted list of edges that violate the given knowledge.MarkovCheck.getAndersonDarlingTestAcceptsRejectsNodesForAllNodes(IndependenceTest independenceTest, Graph graph, Double threshold, Double shuffleThreshold) Calculates the Anderson-Darling test and classifies nodes as accepted or rejected based on the given threshold.MarkovCheck.getAndersonDarlingTestAcceptsRejectsNodesForAllNodesPlotData(IndependenceTest independenceTest, Graph estimatedCpdag, Graph trueGraph, Double threshold, Double shuffleThreshold, Double lowRecallBound) Get accepts and rejects nodes for all nodes from Anderson-Darling test and generate the plot data for confusion statistics.MarkovCheck.getAndersonDarlingTestAcceptsRejectsNodesForAllNodesPlotData2(IndependenceTest independenceTest, Graph estimatedCpdag, Graph trueGraph, Double threshold, Double shuffleThreshold, Double lowRecallBound) Get accepts and rejects nodes for all nodes from Anderson-Darling test and generate the plot data for confusion statistics.Pc.getColliderTriples(Graph g) Retrieves all colliders from the provided graph based on specific criteria.PcAR.getColliderTriples(Graph g) Retrieves all colliders from the provided graph based on specific criteria.double[][]CpdagParentDistancesFromTrue.getDistances(Graph outputPdag, double[][] trueEdgeStrengths, DataSet dataSet, CpdagParentDistancesFromTrue.DistanceType distanceType) Calculates the distance matrix for the edges in the given PDAG (outputPdag).MarkovCheck.getF1StatsForTargetNodeAdjacencySubgraph(Node x, Graph estimatedGraph, Graph trueGraph) Calculates F1 statistics for a target node's adjacency subgraph in terms of adjacency, arrow types, circle types, and tail types.MarkovCheck.getF1StatsForTargetNodeMBSubgraph(Node x, Graph estimatedGraph, Graph trueGraph) Computes the F1 statistics for the Markov blanket subgraph with the target node in the given estimated graph and true graph.MarkovCheck.getF1StatsForTargetNodeParentsSubgraph(Node x, Graph estimatedGraph, Graph trueGraph) Computes the F1 statistics (F1-Adjacency, F1-Arrow, F1-Circle, F1-Tail) between the parents subgraph of a given target node in the estimated graph and the corresponding parents subgraph in the true graph.MarkovCheck.getF1StatsForWholeGraph(Graph estimatedGraph, Graph trueGraph) Calculates the F1 statistics for the entire graph by comparing an estimated graph to the true graph.static Set<IndependenceFact> Computes the complete OLMP model for the given ADMG.static Set<IndependenceFact> Computes the ordered local Markov property for a maximal ancestral graph (MAG).static Set<IndependenceFact> Computes the pairwise Markov property for the given ADMG.static Set<IndependenceFact> OrderedLocalMarkovProperty.getModelForNode(Graph admg, Node x) Returns the subset of OLMP independence facts that havexas one endpoint (i.e., facts of the form x ⊥ y | Z or y ⊥ x | Z), normalised so that x is always the left-hand (getX()) node.static Set<IndependenceFact> OrderedLocalMarkovPropertySinkElimination.getModelForNode(Graph mag, Node x) Returns the subset of ordered-local-Markov independence facts whose "sink" is the given nodex.static Set<IndependenceFact> PairwiseMarkovProperty.getModelForNode(Graph admg, Node x) Returns the subset of pairwise independence facts that involve nodex(as either the left or right endpoint), normalised so thatxis always the left-hand (getX()) node.MarkovCheck.getPrecisionAndRecallGraphPlotData(Node x, Graph estimatedGraph, Graph trueGraph, ConditioningSetType conditioningSetType, String subgraphFeature) Computes the precision and recall values for a specified subgraph structure between an estimated graph and a true graph.voidMarkovCheck.getPrecisionAndRecallOnMarkovBlanketGraph(Node x, Graph estimatedGraph, Graph trueGraph) Calculates the precision and recall on the Markov Blanket graph for a given node.voidMarkovCheck.getPrecisionAndRecallOnMarkovBlanketGraph2(Node x, Graph estimatedGraph, Graph trueGraph) Calculates the precision and recall using LocalGraphConfusion (which calculates the combination of Adjacency and ArrowHead) on the Markov Blanket graph for a given node.MarkovCheck.getPrecisionAndRecallOnMarkovBlanketGraphPlotData(Node x, Graph estimatedGraph, Graph trueGraph) Calculates the precision and recall on the markov blanket graph plot data.MarkovCheck.getPrecisionAndRecallOnMarkovBlanketGraphPlotData2(Node x, Graph estimatedGraph, Graph trueGraph) This method calculates the precision and recall of a target node's Markov Blanket in the given estimated graph.voidMarkovCheck.getPrecisionAndRecallWholeGraph(Graph estimatedGraph, Graph trueGraph) Calculates and prints precision and recall metrics for the whole graph, comparing an estimated graph to the true graph.SepsetFinder.getSepsetContainingGreedySubsetMb(Graph graph, Graph cpdag, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth) Identifies a separating set (sepset) containing a given subset of nodes between two nodes x and y in a graph using a greedy approach and subsets of (adj(x) U adu(y)) \ {x, y}.SepsetFinder.getSepsetContainingMaxPHybrid(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth) Returns the set of nodes that act as a separating set between two given nodes (x and y) in a graph.SepsetFinder.getSepsetContainingMinPHybrid(Graph graph, Node x, Node y, IndependenceTest test, int depth) Returns the sepset containing the minimum p-value for the given variables x and y.SepsetFinder.getSmallestSubset(Node x, Node y, Set<Node> blocking, Set<Node> containing, Graph graph, boolean isPag) Finds a smallest subset S ofblockingthat renders two nodes x and y conditionally d-separated conditional on S in the given graph.static booleanGRegression.hasRestrictiveProperty(Graph graph, Set<Node> bucket) Checks the restrictive property (Corollary 4 of Guo and Perković, 2022) for a bucket: every node in the bucket has the same set of external parents.MarkovAuditUtils.implicatedVertices(Graph graph, IndependenceTest test, ConditioningSetType setType, double q, boolean negativelyCorrelated) Identifies and returns the set of vertices implicated by audit failures of a graph based on the provided independence test, conditioning set type, false discovery rate (FDR) level, and correlation constraints.static booleanGRegression.isIdentified(Graph mpdag, Set<Node> treatments, Node outcome) Determines whether the total effect of the treatments on the outcome is identified given the MPDAG, according to Theorem 2 of Guo and Perković (2022) (Perković, 2020, Proposition 3.2): the effect is identified if and only if there is no proper possibly causal path from the treatment set to the outcome that starts with an undirected edge.booleanVertexRepairSearch.isLegalPagGivenKnowledge(Graph g) Returns true ifgis acceptable to this search as a PAG, given the background knowledge currently set.static booleanReturns true if the graph is an MPDAG (only directed and undirected edges, acyclic, and closed under Meek's rules R1-R4).static booleanPdagPagIda.isRefinementOf(Graph coarse, Graph fine) Determines whether one graph is a refinement of another.static doubleFask.leftRightDiffResidualized(int ruleIndex, Graph graph, Node xi, Node xj, List<Node> nodes, double[][] data) Computes the left-right difference residualized on covariates for the given nodes in a graph.static org.ejml.simple.SimpleMatrixTwoStep.maskFromUndirected(Graph skeleton, List<Node> vars) Deprecated.Constructs a mask matrix from an undirected graph, indicating the adjacency relationships between a given list of nodes.static StringGRegression.mpdagProblem(Graph graph) Returns null if the graph is an MPDAG, or else a description of why it is not.GRegression.nonIdentificationWitness(Graph mpdag, Set<Node> treatments, Node outcome) Returns a witness to non-identification, if any: a proper possibly causal path from a treatment to the outcome that starts with an undirected edge (Theorem 2).Fask.orientationCovariates(Graph graph, Node xi, Node xj, int maxPathLength) Identifies a set of covariates (nodes) that help orient causal relationships between two given nodes xi and xj within a graph.O_G(X -> Y) for an amenable CPDAG or maxPDAG.O_G(X -> Y) for a DAG.static StringGRegressionPag.pagProblem(Graph graph) Returns null if the graph can be used by this estimator, or else a description of why it cannot.static StringGRegression.pathString(Graph graph, List<Node> path) Renders a path as a string using the graph's edge marks, e.g.static GraphMarkovCheck.prepareMagForVertexFacts(Graph graph, ConditioningSetType setType) Precomputes the graph-level transform (the MAG) used by the ordered-local-Markov conditioning types, so that callers evaluating facts for many vertices of the same graph can run the graph-type legality checks and the CPDAG-to-DAG-to-MAG conversion once rather than once per vertex.CheckKnowledge.requiredViolations(Graph graph, Knowledge knowledge) Returns a sorted list of edges that are required by knowledge but which do not appear in the graph.Computes the score of a given data set and graph by evaluating the Bayesian Information Criterion (BIC), stability of the system, and the number of parameters used.doubleScores a Directed Acyclic Graph (DAG) based on its structure.doubleScores the given directed acyclic graph (DAG).BfciScoreCheck.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, boolean useMaxP) Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.GfciOld.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, List<Node> order, boolean useMaxP) Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.StarFciB.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, boolean useMaxP) Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.StarFciC.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, boolean useMaxP) Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.StarFciD.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, boolean useMaxP) Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.StarFciKeepKnowledgeOrientations.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, boolean useMaxP) Deprecated.Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.StarFciOriginal.sepsetSubsetOfAdjxOrAdjy(Graph graph, Node x, Node y, Set<Node> containing, IndependenceTest test, int depth, boolean useMaxP) Finds a separating set that is a subset of the adjacency of nodes x or y in the input graph.voidFges.setBoundGraph(Graph boundGraph) If non-null, edges not adjacent in this graph will not be added.voidFgesMb.setBoundGraph(Graph boundGraph) If non-null, edges not adjacent in this graph will not be added.voidFasd.setExternalGraph(Graph externalGraph) Sets the external graph.voidFask.setExternalGraph(Graph externalGraph) Sets the external graph for the FASK algorithm.voidFaskOrig.setExternalGraph(Graph externalGraph) Deprecated.Sets the external graph to use.voidFaskPool.setExternalGraph(Graph externalGraph) Sets a single external graph, applied to every dataset.voidReplaces the working graph used for repair.voidFges.setInitialGraph(Graph initialGraph) Sets the initial graph for the application.voidFgesMb.setInitialGraph(Graph initialGraph) Sets the initial graph for the software.voidRlcd.setStage1Graph(Graph stage1Graph) Supplies a stage-1 graph over the data variables directly, skipping the stage-1 search.voidCcd.setSuperstructure(Graph superstructure) Sets an optional adjacency superstructure for Step A.static voidMarkovAuditUtils.stampSeedAttribute(Graph graph, Collection<Node> seeds) WritesseedsontographunderMarkovAuditUtils.SEED_ATTRIBUTEas a comma-separated name list, the channel the Vertex Repair GUI reads to offer seeded repair.treks.Method parameters in edu.cmu.tetrad.search with type arguments of type GraphModifier and TypeMethodDescriptionvoidFaskPool.setExternalGraphs(List<Graph> externalGraphs) Sets the external graphs, one per dataset, in the order of the datasets.voidFaskVote.setExternalGraphs(List<Graph> externalGraphs) Sets the external graphs, one per dataset (or a single graph, when the external-graph algorithm pools the datasets internally).Constructors in edu.cmu.tetrad.search with parameters of type GraphModifierConstructorDescriptionGacTotalEffectElibility(Graph graph, String graphType, int maxPathLength) Constructs a new GacTotalEffectElibility instance with the specified graph, graph type, and maximum path length.Represents a graph used in Dijkstra's algorithm.GRegression(Graph mpdag, ICovarianceMatrix cov) Constructs a G-regression estimator for the given MPDAG and covariance matrix.GRegressionPag(Graph pag, ICovarianceMatrix cov) Constructs the estimator with default RICF settings.GRegressionPag(Graph pag, ICovarianceMatrix cov, double tol, int maxIters) Constructs the estimator, fitting the Gaussian ancestral graph model once.Constructor.Constructs a new IDA check for the given PDAG and data set.LatentParentRecovery(DataSet data, Graph latentGraph) Constructs a latent-parent recovery procedure.Constructor for the LatentPurifier class, which implements the purification step of Silva et al.'s BuildPureClusters algorithm.MarkovCheck(Graph graph, IndependenceTest independenceTest, ConditioningSetType setType) Constructor.Constructor.PdagPagIda(DataSet dataSet, Graph graph, List<Node> possibleCauses) Constructs a new instance of the PdagPagIda class which is used for processing a dataset and graph combination while ensuring the provided graph is a valid DAG, CPDAG/PDAG, or PAG, and the dataset is continuous.RecursiveAdjustment(Graph graph) Constructs a RecursiveAdjustment instance with the specified causal graph.RecursiveAdjustmentMultiple(Graph graph) Constructs an instance of AdjustmentMultiple with the provided graph.Constructs a Result object that encapsulates the output of the TwoStep algorithm.TginOrientationStages(Graph graph, List<Node> allLatents, Map<Node, Node> nodeMap, DataSet dataSet, double alpha, int sampleSize, RawMarginalIndependenceTest hsic) Constructs a new instance of TginOrientationStages.VertexRepairSearch(Graph graph, IndependenceTest test, ConditioningSetType type) Constructs a new instance of VertexRepairSearch.Constructor parameters in edu.cmu.tetrad.search with type arguments of type Graph -
Uses of Graph in edu.cmu.tetrad.search.cdnod_pag
Methods in edu.cmu.tetrad.search.cdnod_pag that return GraphModifier and TypeMethodDescriptionCdnodPagOrienter.getPag()Returns the current PAG (the final one, afterCdnodPagOrienter.run()has completed).CdnodPag.run()Executes the pipeline and returns the resulting PAG.CdnodPagOrienter.run()Runs the orientation pass and returns the resulting PAG.Builds the baseline PAG from the given dataset.Methods in edu.cmu.tetrad.search.cdnod_pag with parameters of type GraphModifier and TypeMethodDescriptionstatic voidPagEdgeUtils.orientArrowheadAt(Graph pag, Node parentCand, Node child) Orients the edge in the given PAG (Partial Ancestral Graph) such that there is an arrowhead at the specified child node coming from the specified parent candidate node.PagEdgeUtils.partiallyOriented(Graph pag) Retrieves a list of edges from the specified graph (PAG) that are partially oriented.Constructors in edu.cmu.tetrad.search.cdnod_pag with parameters of type GraphModifierConstructorDescriptionCdnodPagOrienter(Graph pag, ChangeOracle oracle, Function<Graph, Boolean> strongPagLegality, Function<Graph, Graph> propagator) Constructs a CdnodPagOrienter.MsepOracleChangeTest(Graph trueGraph) Constructs the oracle over the given true graph.Constructor parameters in edu.cmu.tetrad.search.cdnod_pag with type arguments of type GraphModifierConstructorDescriptionCdnodPag(DataSet dataAll, double alpha, ChangeTest changeTest, CdnodPag.PagBuilder pagBuilder, Function<Graph, Boolean> legalityCheck, Function<Graph, Graph> propagator, Knowledge knowledge) Constructs an instance of the CdnodPag class with the specified parameters.CdnodPagOrienter(Graph pag, ChangeOracle oracle, Function<Graph, Boolean> strongPagLegality, Function<Graph, Graph> propagator) Constructs a CdnodPagOrienter. -
Uses of Graph in edu.cmu.tetrad.search.harness
Methods in edu.cmu.tetrad.search.harness with parameters of type GraphModifier and TypeMethodDescriptionCiTestHarness.run(Graph trueGraph, DataSet data, List<IndependenceWrapper> tests, Parameters params, CiTestHarness.Config cfg) Executes a series of independence tests on a dataset using a given true graph and configuration, and evaluates the results against predefined criteria.voidGraphoidClosureHarness.run(Graph graph, IndependenceTest test, ConditioningSetType conditioningSetType, GraphoidClosureHarness.ClosureType closureType) Runs the harness. -
Uses of Graph in edu.cmu.tetrad.search.harness.tsbi
Methods in edu.cmu.tetrad.search.harness.tsbi that return GraphModifier and TypeMethodDescriptionstatic GraphStructuralGraphScorer.extractTrueStructural(Graph mim) Extracts the true structural graph (latent-to-latent edges only) from a full MIM graph produced byRandomMim.Runs PC with TSBI given a dataset and a pre-determined clustering.Methods in edu.cmu.tetrad.search.harness.tsbi with parameters of type GraphModifier and TypeMethodDescriptionstatic GraphStructuralGraphScorer.extractTrueStructural(Graph mim) Extracts the true structural graph (latent-to-latent edges only) from a full MIM graph produced byRandomMim.Scores the recovered structural graph against the true structural graph. -
Uses of Graph in edu.cmu.tetrad.search.harness.tsc
Methods in edu.cmu.tetrad.search.harness.tsc with parameters of type GraphModifier and TypeMethodDescriptionTrueClusterExtractor.extractClusterNames(Graph graph) Extracts true clusters and returns them as sets of variable names rather thanNodeobjects.TrueClusterExtractor.extractClusters(Graph graph) Extracts true latent clusters fromgraph.TrueClusterExtractor.extractLatentLeaders(Graph graph) Extracts the primary latent node for each group in the same order asTrueClusterExtractor.extractClusters(Graph).SemParameterizer.parameterize(Graph graph) Creates aSemImfromgraphusing the current parameter ranges.SemParameterizer.parameterizeAndSimulate(Graph graph, int sampleSize) Parameterisesgraphand simulatessampleSizerows of linear Gaussian data in a single call. -
Uses of Graph in edu.cmu.tetrad.search.is
Methods in edu.cmu.tetrad.search.is that return GraphModifier and TypeMethodDescriptionIsGFci.search()Executes IS-FGES, targeted-pruning, and FCI orientations to produce an instance-specific PAG.Methods in edu.cmu.tetrad.search.is with parameters of type GraphModifier and TypeMethodDescriptionvoidIsGFci.modifiedR0(Graph fgesGraph) Modifies the orientation of edges in the given graph based on a set of rules and conditions that respect definite colliders, adjacency, and separation sets derived from FGES analysis.voidIndTestProbabilisticBDeu.setGoldStandard(Graph gs) Sets the gold standard graph for the independence test.voidIsFges.setPopulationGraph(Graph pop) Sets the population graph by either assigning it directly or replacing its nodes with the corresponding search variables using the utility method.voidIsGFci.setPopulationGraph(Graph populationGraph) Sets the population graph used in the instance. -
Uses of Graph in edu.cmu.tetrad.search.mimic
Methods in edu.cmu.tetrad.search.mimic that return GraphModifier and TypeMethodDescriptionMimicTrialResult.getEstimatedGraph(String algorithm) Returns the estimated graph for the given algorithm name, or null if none exists.BossTrekMimic.getGraph()Deprecated.Returns the current graph after search, if available.MimicModel.getGraph()Returns a defensive copy of the full graph.TrekMimic.getGraph()Returns the current graph after search, if available.TrekMeasurementModelBuilderBoss.MeasurementBuildResult.graph()Returns the value of thegraphrecord component.TrekMeasurementModelBuilderPc.MeasurementBuildResult.graph()Returns the value of thegraphrecord component.BossTrekMimicRunner.run(DataSet data, Knowledge knowledge, List<Node> inputs, List<Node> outputs, Parameters parameters) Deprecated.Runs the search algorithm on the supplied measured data using the supplied knowledge and parameters.DmRunner.run(DataSet data, Knowledge knowledge, List<Node> inputs, List<Node> outputs, Parameters parameters) Runs the search algorithm on the supplied measured data using the supplied knowledge and parameters.MimicSearchRunner.run(DataSet data, Knowledge knowledge, List<Node> inputs, List<Node> outputs, Parameters parameters) Runs the search algorithm on the supplied measured data using the supplied knowledge and parameters.TrekMimicRunner.run(DataSet data, Knowledge knowledge, List<Node> inputs, List<Node> outputs, Parameters parameters) Runs the search algorithm on the supplied measured data using the supplied knowledge and parameters.BossTrekMimic.search()Deprecated.Runs the full Boss-Trek-MIMIC search.Dm.search()Runs the DM search and returns the resulting graph.DmPcHybrid.search()DmPcRobust.search()TrekMimic.search()Runs the full Trek-MIMIC search.Methods in edu.cmu.tetrad.search.mimic that return types with arguments of type GraphModifier and TypeMethodDescriptionMimicTrialResult.getEstimatedGraphs()Returns the estimated graphs by algorithm name.LatentGraphRefinement.orientAndPruneEdges(Graph graph) Orients and prunes the latent structure of the given graph.Methods in edu.cmu.tetrad.search.mimic with parameters of type GraphModifier and TypeMethodDescriptionvoidLatentGraphRefinement.addTransitiveInputEdges(Graph graph) Adds all transitive input-to-latent edges implied by the current directed latent structure.Evaluates the estimated graph against the true graph and returns a report object.MimicEvaluator.evaluate(MimicModel trueModel, Graph estimatedGraph) Evaluates an estimated graph against the true model.LatentGraphRefinement.orientAndPruneEdges(Graph graph) Orients and prunes the latent structure of the given graph.voidLatentGraphRefinement.orientLatentEdges(Graph graph) Orients undirected latent-latent edges using asymmetric correlations between measured parents and measured children.voidLatentGraphRefinement.orientLatentEdgesAnyNone(Graph graph) Orients undirected latent-latent edges using asymmetric correlations between measured parents and measured children.voidLatentGraphRefinement.orientLatentEdgesUsingRanks(Graph graph) Orients latent edges in the given graph using statistical rank-based tests.voidLatentGraphRefinement.pruneInputLatentEdges(Graph graph) Removes "latent" edges from the provided graph based on specific conditions.voidLatentGraphRefinement.pruneLatentLatentEdges(Graph graph) Removes latent-latent edges whose cross-block dependence is fully explained by the recovered measured parents of the two endpoint latents.voidLatentGraphRefinement.pruneTransitiveInputEdgesByLatentAncestry(Graph graph) Optionally removes input edges X -> L that are explained by a directed latent path X -> La -> ...voidLatentGraphRefinement.pruneTransitiveLatentEdges(Graph graph) Removes transitive latent-latent edges after orientation.Constructors in edu.cmu.tetrad.search.mimic with parameters of type GraphModifierConstructorDescriptionMeasurementBuildResult(BlockSpec spec, Graph graph, List<Node> latents, List<Node> observedChildren, List<Node> parentPool, List<Node> variables, org.ejml.simple.SimpleMatrix matrix, int sampleSize, double alpha) Creates an instance of aMeasurementBuildResultrecord class.MeasurementBuildResult(BlockSpec spec, Graph graph, List<Node> latents, List<Node> observedChildren, List<Node> parentPool, List<Node> variables, int sampleSize, double alpha) Creates an instance of aMeasurementBuildResultrecord class.Constructs a new MIMIC model container.Constructor parameters in edu.cmu.tetrad.search.mimic with type arguments of type GraphModifierConstructorDescriptionMimicTrialResult(MimicModel trueModel, DataSet measuredData, Knowledge knowledge, Map<String, Graph> estimatedGraphs, Map<String, MimicEvaluation> evaluations, Map<String, LatentLatentEvaluator.Report> latentLatentReports) Constructs a new trial result. -
Uses of Graph in edu.cmu.tetrad.search.rlcd
Constructors in edu.cmu.tetrad.search.rlcd with parameters of type GraphModifierConstructorDescriptionRlcdStabilitySummary(Graph main, List<Graph> runs) Tallies co-clustering, observed adjacencies and latent counts over the runs.Constructor parameters in edu.cmu.tetrad.search.rlcd with type arguments of type GraphModifierConstructorDescriptionRlcdStabilitySummary(Graph main, List<Graph> runs) Tallies co-clustering, observed adjacencies and latent counts over the runs. -
Uses of Graph in edu.cmu.tetrad.search.score
Methods in edu.cmu.tetrad.search.score that return GraphModifier and TypeMethodDescriptionGraphScore.getDag()Returns a copy of the DAG being searched over.ScoredGraph.getGraph()Returns the graph.Methods in edu.cmu.tetrad.search.score with parameters of type GraphModifier and TypeMethodDescriptionintThe number of penalized parameters of the graph: its number of edges.doubleScores the graph with a single RICF fit of the whole graph, no decomposition and no cache.doubleMagRicfBicScorer.logLikelihood(Graph mag) The maximized Gaussian log-likelihood of the graph, constants included, computed district by district with caching.doubleScores the given MAG/ADMG:2 * logLik - penaltyDiscount * numEdges * log(n), higher is better.static doubleScores the given DAG using the given data model, usimg a BIC score.static doubleSemBicScorer.scoreDag(Graph dag, DataModel data, double penaltyDiscount, boolean precomputeCovariances) Scores the given DAG using the given data model, usimg a BIC score.Constructors in edu.cmu.tetrad.search.score with parameters of type GraphModifierConstructorDescriptionGraphScore(Graph dag) Constructs a GraphScore from a DAG.ScoredGraph(Graph graph, Double score) Constructs a scored graph. -
Uses of Graph in edu.cmu.tetrad.search.test
Methods in edu.cmu.tetrad.search.test that return GraphModifier and TypeMethodDescriptionstatic GraphIndTestFdrWrapper.doFdrLoop(IGraphSearch search, boolean negativelyCorrelated, double alpha, double fdrQ, boolean verbose) Executes a loop for controlling the false discovery rate (FDR) as part of a graph search process.MsepTest.getGraph()Returns the underlying graph that is being used to calculate d-separation relationships.Constructors in edu.cmu.tetrad.search.test with parameters of type Graph -
Uses of Graph in edu.cmu.tetrad.search.unmix
Fields in edu.cmu.tetrad.search.unmix with type parameters of type GraphModifier and TypeFieldDescriptionUnmixResult.clusterGraphsA list of optional graphical representations of clusters, where each graph corresponds to a specific cluster.CausalUnmixer.Config.perClusterGraphFnA function that generates a cluster-specific graph creation method.CausalUnmixer.Config.pooledGraphFnA function that generates a pooled graph model based on a given configuration and dataset.ParentSupersetBuilder.Config.shallowSearchIf provided, called on each subsample to get a shallow graph (e.g., PC-Max depth 1)Methods in edu.cmu.tetrad.search.unmix with parameters of type GraphModifier and TypeMethodDescriptionstatic UnmixDiagnostics.GraphDiffUnmixDiagnostics.compareClusterGraphsCpdag(Graph g1, Graph g2) Compares two clustering graphs by transforming them into CPDAGs (Completed Partially Directed Acyclic Graphs), and calculates the adjacency F1 score, arrow F1 score, and Structural Hamming Distance (SHD) between the graphs.static double[][]ResidualUtils.residualMatrix(DataSet data, Graph g, ResidualRegressor reg) Constructs a residual matrix where each column corresponds to a variable in the dataset and contains the residuals obtained after regressing that variable on its parents as specified by the given graph.Method parameters in edu.cmu.tetrad.search.unmix with type arguments of type GraphModifier and TypeMethodDescriptionstatic UnmixDiagnostics.BicDeltaUnmixDiagnostics.computeBicDeltaK1K2(DataSet data, EmUnmix.Config baseCfg, ResidualRegressor regressor, Function<DataSet, Graph> pooled, Function<DataSet, Graph> perCluster) Computes the Bayesian Information Criterion (BIC) for mixture models with K=1 and K=2 clusters, and calculates the BIC difference (delta) between them.static UnmixResultEmUnmix.run(DataSet data, EmUnmix.Config cfg, ResidualRegressor regressor, Function<DataSet, Graph> pooledSearch, Function<DataSet, Graph> perClusterSearch) Executes the unmixing process on the given dataset using the specified configuration, residual regressor, and optional graph search functions.static UnmixResultEmUnmix.selectK(DataSet data, int Kmin, int Kmax, ResidualRegressor regressor, Function<DataSet, Graph> pooledSearch, Function<DataSet, Graph> perClusterSearch, EmUnmix.Config base) Selects the optimal number of clusters (K) for unmixing a dataset within the specified range [Kmin, Kmax].UnmixDiagnostics.stabilityAcrossRestarts(DataSet data, EmUnmix.Config cfg, ResidualRegressor regressor, Function<DataSet, Graph> pooled, Function<DataSet, Graph> perCluster, int repeats, long seedBase) Evaluates the stability of clustering results across multiple independent runs of the EM algorithm by calculating the average Adjusted Rand Index (ARI) and its standard deviation between all pairs of runs. -
Uses of Graph in edu.cmu.tetrad.search.utils
Methods in edu.cmu.tetrad.search.utils that return GraphModifier and TypeMethodDescriptionMagToPag.convert(boolean checkMag, boolean excludeSelectionBias) This method does the conversion of MAG to PAG.TsDagToPag.convert()convert.FgesOrienter.getAdjacencies()Getter for the fieldadjacencies.TsUtils.VarResult.getCollapsedVarGraph()Getter for the fieldcollapsedVarGraph.DagSepsets.getDag()Returns the DAG being analyzed.SepsetsGreedy.getDag()Retrieves the Directed Acyclic Graph (DAG) produced by the Sepsets algorithm.SepsetsGreedyMb.getDag()Retrieves the Directed Acyclic Graph (DAG) produced by the Sepsets algorithm.SepsetsMaxP.getDag()Retrieves the Directed Acyclic Graph (DAG) produced by the Sepset algorithm.SepsetsMinP.getDag()Retrieves the Directed Acyclic Graph (DAG) produced by the Sepsets algorithm.FgesOrienter.getExternalGraph()Getter for the fieldexternalGraph.TeyssierScorer.getGraph(boolean cpdag) Returns the DAG build for the current permutation, or its PDAG.static GraphMbUtils.getOneMbDag(Graph mbCpdag) Returns an example DAG from the given MB CPDAG.PossibleMConnectingPath.getPag()Getter for the fieldpag.TsDagToPag.getTruePag()Getter for the fieldtruePag.DagInCpcagIterator.next()Successive calls to this method return successive DAGs in the CPDAG, in a more or less natural enumeration of them in which an arbitrary undirected edge is picked, oriented one way, Meek rules applied, then a remaining unoriented edge is picked, oriented one way, and so on, until a DAG is obtained, and then by backtracking the other orientation of each chosen edge is tried.DagIterator.next()Successive calls to this method return successive DAGs in the CPDAG, in a more or less natural enumeration of them in which an arbitrary undirected edge is picked, oriented one way, Meek rules applied, then a remaining unoriented edge is picked, oriented one way, and so on, until a DAG is obtained, and then by backtracking the other orientation of each chosen edge is tried.FgesOrienter.search()Greedy equivalence search: Start from the empty graph, add edges till model is significant.static GraphCorrectnessGates.tryZhangMag(Graph pag) The Zhang MAG of the given PAG, or null if the conversion fails (which both gates treat as a veto).Methods in edu.cmu.tetrad.search.utils that return types with arguments of type GraphModifier and TypeMethodDescriptionMbUtils.generateMbDags(Graph mbCPDAG, boolean orientBidirectedEdges, IndependenceTest test, int depth, Node target) Generates the list of MB DAGs consistent with the MB CPDAG returned by the previous search.Methods in edu.cmu.tetrad.search.utils with parameters of type GraphModifier and TypeMethodDescriptionbooleanWhether a candidate that has passed the caller's legality check also passes the gates that are on.static voidGraphSearchUtils.basicCpdag(Graph graph) Get a graph and direct only the unshielded colliders.static voidGraphSearchUtils.basicCpdagRestricted2(Graph graph, Node node) basicCpdagRestricted2.voidBegins a run: builds the RICF scorer and scores the start graph when the score step is on, and computes the start graph's uncertified pairs when the I-map gate is on.voidRuns BES for a graph over the given list of variablesvoidRuns BES.static SeedMarkovCheck.ResultSeedMarkovCheck.check(Graph seedPag, Graph trueDag, Knowledge knowledge, int recursiveDepth, int sepsetMaxDepth, boolean checkColliders) Does the check.voidRecords a commit: recomputes the committed state's uncertified pairs when the I-map gate is on.static R0R4StrategyR0R4StrategyTestBased.defaultConfiguration(Graph dag, Knowledge knowledge) Returns a default configuration of the FciOrientDataExaminationStrategy object.org.apache.commons.lang3.tuple.Pair<DiscriminatingPath, Boolean> R0R4Strategy.doDiscriminatingPathOrientation(DiscriminatingPath discriminatingPath, int maxBlockingPathLength, int maxDiscriminatingPathLength, Graph graph, Set<Node> vNodes) Does a discriminating path orientation based on an examination of the data.org.apache.commons.lang3.tuple.Pair<DiscriminatingPath, Boolean> R0R4StrategyTestBased.doDiscriminatingPathOrientation(DiscriminatingPath discriminatingPath, int recursiveDepth, int maxDiscriminatingPathLength, Graph graph, Set<Node> vNodes) Does a discriminating path orientation.booleanDetermines whether a discriminating path exists in the given graph.static booleanTsDagToPag.existsInducingPathInto(Node x, Node y, Graph graph, Knowledge knowledge) existsInducingPathInto.static booleanTsDagToPag.existsInducingPathVisitts(Graph graph, Node a, Node b, Node x, Node y, LinkedList<Node> path, Knowledge knowledge) existsInducingPathVisitts.voidFciOrient.fciOrientbk(Knowledge bk, Graph graph, List<Node> variables, boolean excludeSelectionBias) Orient the edges of a graph based on the given knowledge.voidFciOrient.finalOrientation(Graph graph) Determines the final orientation of the given graph based on the rule set being used.voidFciOrient.finalOrientation(Graph graph, boolean excludeSelectionBias) Orients the graph (in place) according to rules in the graph (FCI step D).static List<PossibleMConnectingPath> PossibleMConnectingPath.findMConnectingPaths(Graph pag, Node x, Node y, Collection<Node> z) Finds all possible D-connection undirectedPaths as sub-graphs of the pag given at construction time from x to y given z.static List<PossibleMConnectingPath> PossibleMConnectingPath.findMConnectingPathsOfLength(Graph pag, Node x, Node y, Collection<Node> z, Integer length) Finds all possible D-connection undirectedPaths as sub-graphs of the pag given at construction time from x to y given z for a particular path length.MbUtils.generateMbDags(Graph mbCPDAG, boolean orientBidirectedEdges, IndependenceTest test, int depth, Node target) Generates the list of MB DAGs consistent with the MB CPDAG returned by the previous search.Returns a map of nodes to bidirected edges for them.GraphSearchUtils.getCpcTripleType(Node x, Node y, Node z, IndependenceTest test, int depth, Graph graph) getCpcTripleType.static StringGraphSearchUtils.getEdgewiseComparisonString(String trueGraphName, Graph trueGraph, String targetGraphName, Graph targetGraph) getEdgewiseComparisonString.static R0R4StrategyTestBasedMagToPag.getFinalStrategyUsingDsep(Graph mag, Knowledge knowledge, boolean verbose, Map<Node, Set<Node>> ancestorCache) Returns the final strategy for finding a PAG using D-SEP.static GraphUtils.GraphComparisonGraphSearchUtils.getGraphComparison(Graph trueGraph, Graph targetGraph) Just counts arrowhead errors--for cyclic edges counts an arrowhead at each node.static KnowledgeTsUtils.getKnowledge(Graph graph) getKnowledge.static @NotNull DataSetLgMnarDataSimulator.getMnarData(Graph graph, int numVariablesWithMissing, int numExtraInfluences, double threshold, int numRows) Generates a dataset with Missing Not At a Random (MNAR) data mechanism applied to specific variables in a graph.static GraphMbUtils.getOneMbDag(Graph mbCpdag) Returns an example DAG from the given MB CPDAG.GraphSearchUtils.getReachableNodes(List<Node> initialNodes, LegalPairs legalPairs, List<Node> c, List<Node> d, Graph graph, int maxPathLength) getReachableNodes.doublegetScore.static int[][]GraphSearchUtils.graphComparison(Graph trueCpdag, Graph estCpdag, PrintStream out) graphComparison.static booleanGraphInPag.graphInPagStep0(Graph pag, Graph dag) This method implements step (1) of the definition.static booleanGraphInPag.graphInPagStep1(Graph pag, Graph dag) graphInPagStep1.static booleanGraphInPag.graphInPagStep2(Graph pag, Graph dag) graphInPagStep2.static booleanGraphInPag.graphInPagStep3(Graph pag, Graph dag) graphInPagStep3.static booleanGraphInPag.graphInPagStep4(Graph pag, Graph dag) graphInPagStep4.static booleanGraphInPag.graphInPagStep5(Graph pag, Graph dag) graphInPagStep5.static TimeLagGraphTsUtils.graphToLagGraph(Graph _graph, int numLags, int extraLaggedEdges) Converts a directed graph into a time-lagged graph representation.static booleanFciOrient.isArrowheadAllowed(Node x, Node y, Graph graph, Knowledge K) Determines if an arrowhead can be placed at node Y in the given graph, based on the adjacency relationships, endpoint types, and any provided prior knowledge constraints.static PagLegalityCheck.LegalMagRetPagLegalityCheck.isLegalMag(Graph mag, Set<Node> selection) Determines whether the given graph is a legal Maximal Ancestral Graph (MAG).static PagLegalityCheck.LegalMagRetPagLegalityCheck.isLegalMag(Graph mag, Set<Node> selection, int timeoutSeconds) RunsPagLegalityCheck.isLegalMag(Graph, Set)with a timeout.static booleanPagLegalityCheck.isLegalMagQuiet(Graph mag, Set<Node> selection) Determines whether the given graph is a legal Maximal Ancestral Graph (MAG) without providing detailed error messages.static PagLegalityCheck.LegalPagRetPagLegalityCheck.isLegalPag(Graph pag, Graph mag, Set<Node> selection) The same certificate with the Zhang MAG ofpagsupplied by the caller, for searches that have already computed that MAG for another purpose (to score it, say) and would otherwise pay for the conversion twice per candidate.static PagLegalityCheck.LegalPagRetPagLegalityCheck.isLegalPag(Graph pag, Set<Node> selection) Checks if the provided Partial Ancestral Graph (PAG) is a legal PAG.static PagLegalityCheck.LegalPagRetPagLegalityCheck.isLegalPag(Graph pag, Set<Node> selection, int timeoutSeconds) RunsPagLegalityCheck.isLegalPag(Graph, Set)with a timeout.static PagLegalityCheck.LegalPagRetPagLegalityCheck.isLegalPagModuloKnowledge(Graph pag, Set<Node> selection, Knowledge knowledge, FciOrient orient, boolean excludeSelectionBias) Legality certificate for a PAG that carries background-knowledge endpoint marks: legal PAG *modulo background knowledge*.static booleanPagLegalityCheck.isLegalPagQuiet(Graph pag, Set<Node> selection) Determines whether the provided Partial Ancestral Graph (PAG) is a legal PAG without providing detailed error messages.static booleanPagLegalityCheck.isLegalPagQuiet(Graph pag, Set<Node> selection, int timeoutSeconds) RunsPagLegalityCheck.isLegalPagQuiet(Graph, Set)with a timeout.booleanR0R4Strategy.isUnshieldedCollider(Graph graph, Node a, Node b, Node c) Determines if a given triple is an unshielded collider based on an examination of the data.booleanR0R4StrategyTestBased.isUnshieldedCollider(Graph graph, Node i, Node j, Node k) Checks if a collider is unshielded or not.static Set<DiscriminatingPath> FciOrient.listDiscriminatingPaths(Graph graph, int maxLen, boolean checkXyNonadjacency) Finds and returns a set of discriminating paths in the given graph.static Set<DiscriminatingPath> FciOrient.listDiscriminatingPaths(Graph graph, Node w, Node y, int maxLen, boolean checkXyNonadjacency) Finds and returns the set of discriminating paths in the given graph, based on the specified parameters.PreserveMarkov.markovAdjustPValues(Graph graph, boolean preserveMarkov, IndependenceTest test, Map<org.apache.commons.lang3.tuple.Pair<Node, Node>, Set<Double>> pValues, org.apache.commons.lang3.tuple.Pair<Node, Node> withoutPair) Adjusts the p-values for a local Markov condition in a given constraint-based partially directed acyclic graph (CPDAG).voidPerforms FCI orientation on the given graph, including R0 and either the Spirtes or Zhang final orientation rules.voidorient.static voidGraphSearchUtils.orientCollidersUsingSepsets(SepsetMap set, Knowledge knowledge, Graph graph, boolean verbose, boolean enforceCpdag) Step C of PC; orients colliders using specified sepset.MeekRules.orientImplied(Graph graph) Uses the Meek rules to do as many orientations in the given graph as possible.static voidGraphSearchUtils.pcdOrientC(IndependenceTest test, Knowledge knowledge, Graph graph) Performs step C of the algorithm, as indicated on page xxx of CPS, with the modification that X--W--Y is oriented as X-->W<--Y if W is *determined by* the sepset of (X, Y), rather than W just being *in* the sepset of (X, Y).static voidGraphSearchUtils.pcOrientbk(Knowledge bk, Graph graph, List<Node> nodes, boolean verbose) Orients according to background knowledge.voidAlmostCycleRemover.recallUnshieldedTriples(Graph pag) Recalls unshielded triples in the given graph.booleanAlmostCycleRemover.removeAlmostCycles(Graph pag) Removes almost cycles from the Graph.booleanAlmostCycleRemover.removeCycles(Graph pag) Removes cycles from the Graph.static voidGraphSearchUtils.repositionLatents(Graph graph) Repositions each latent node to the average (x, y) location of its adjacent measured nodes (parents and children combined).voidOrients unshielded colliders in the graph.voidR1: If α *→ β o––* γ, and α and γ are not adjacent, then orient the triple as α *→ β → γ.voidR10 (Zhang 2008 FCI orientation rule).voidR2: If α → β ∘→ γ or α ∘→ β → γ, and α ∘–o γ, then orient α ∘–o γ as α ∘→ γ.voidR3: If α *→ β ←* γ, α *–o θ o–* γ, α and γ are not adjacent, and θ *–o β, then orient θ *–o β as θ *→ β.voidR4: If u = ⟨θ, …, α, β, γ⟩ is a discriminating path between θ and γ for β, and β o−∗ γ, then: If β ∈ Sepset(θ, γ), orient β o−∗ γ as β → γ; Otherwise, orient the triple ⟨α, β, γ⟩ as α ↔ β ↔ γ.voidR5: For every remaining α o−o β, if there exists an uncovered circle path p = ⟨α, γ, …, θ, β⟩ between α and β such that α and θ are not adjacent and β and γ are not adjacent, then orient α o−o β and every edge on p as undirected (−−).voidR6: If α — β o−∗ γ (where α and γ may or may not be adjacent), then orient β o−∗ γ as β −∗ γ.voidR7: If α −∘ β o−∗ γ, and α and γ are not adjacent, then orient β o−∗ γ as β −∗ γ.booleanR8: If α → β → γ or α −∘ β → γ, and α ∘→ γ, then orient α ∘→ γ as α → γ.booleanR9: Suppose α ∘→ γ, and let p = ⟨α, β, θ, …, γ⟩ be an uncovered, potentially-directed path from α to γ such that γ and β are not adjacent.voidFciOrient.rulesR1R2cycle(Graph graph) Apply rules R1 and R2 in cycles for a given graph.voidFciOrient.rulesR5R6R7(Graph graph) Applies transformation rules R5, R6, and R7 to the provided graph.voidFciOrient.rulesR8R9R10(Graph graph) Implements Zhang's rules R8, R9, R10, applies them over the graph once.doublescoreDag.doublescoreDag.voidFgesOrienter.setAdjacencies(Graph adjacencies) Sets the set of preset adjacenies for the algorithm; edges not in this adjacencies graph will not be added.voidDefaultSetEndpointStrategy.setEndpoint(Graph graph, Node a, Node b, Endpoint endpoint) Sets the endpoint of a graph given the two nodes and the desired endpoint.voidSetEndpointStrategy.setEndpoint(Graph graph, Node a, Node b, Endpoint arrow) Sets the endpoint of a graph given the two nodes and the desired endpoint.voidFgesOrienter.setExternalGraph(Graph externalGraph) Sets the initial graph.voidvoidSets the graph for the SepsetProducer object.voidSets the graph for the Sepsets object.voidSets the graph for the Sepsets object.voidSets the graph for the SepsetsMaxP object.voidSets the graph for the Sepsets object.voidvoidvoidR0R4StrategyTestBased.setSepsetGraph(Graph sepsetGraph) Sets the frozen reference graph (G_0) used to compute separators for endpoint pairs that have no recorded separator.voidFgesOrienter.setTrueGraph(Graph trueGraph) If the true graph is set, askterisks will be printed in log output for the true edges.voidIPurify.setTrueGraph(Graph mim) setTrueGraph.voidPurifyTetradBased.setTrueGraph(Graph mim) setTrueGraph.voidTsDagToPag.setTruePag(Graph truePag) Setter for the fieldtruePag.static FcitSepsets.SepsetResultFcitSepsets.spanningSepset(Graph graph, IndependenceTest test, Node x, Node y, int recursiveDepth, int depth, int rbRadius, long deadline, Runnable onTest) Searches for a separating set S such that x and y are conditionally independent given S within the specified constraints.static FcitSepsets.SepsetSearchFcitSepsets.spanningSepsetSearch(Graph graph, IndependenceTest test, Node x, Node y, int recursiveDepth, int depth, int rbRadius, long deadline, Runnable onTest) Searches for a set S with x _||_ y | S in the given graph.static voidLogUtilsSearch.stampWithBic(Graph graph, DataModel dataModel) stampWithBic.static voidLogUtilsSearch.stampWithScore(Graph graph, Score score) stampWithScore.static intGraphSearchUtils.structuralhammingdistance(Graph trueGraph, Graph estGraph, boolean useTrueCpdag) Originally, Tsamardinos, I., Brown, L.static voidMbUtils.trimEdgesAmongParents(Graph graph, Node target) Removes edges among the parents of the target.static voidMbUtils.trimEdgesAmongParentsOfChildren(Graph graph, Node target) Removes edges among the parents of children of the target.static voidMbUtils.trimToAdjacents(Graph graph, Node target) Trims the graph to just the adjacents of the target.static voidMbUtils.trimToMbNodes(Graph graph, Node target, boolean includeBidirected) Trims the graph to the target, the parents and children of the target, and the parents of the children of the target.static GraphCorrectnessGates.tryZhangMag(Graph pag) The Zhang MAG of the given PAG, or null if the conversion fails (which both gates treat as a veto).Constructors in edu.cmu.tetrad.search.utils with parameters of type GraphModifierConstructorDescriptionDagInCpcagIterator(Graph CPDAG) The given CPDAG must be a CPDAG.DagInCpcagIterator(Graph CPDAG, Knowledge knowledge) The given CPDAG must be a CPDAG.DagInCpcagIterator(Graph CPDAG, Knowledge knowledge, boolean allowArbitraryOrientations, boolean allowNewColliders) The given CPDAG must be a CPDAG.DagIterator(Graph CPDAG) The given CPDAG must be a CPDAG.DagSepsets(Graph dag) Constructs a new DagSepsets object for the given DAG.Graph(Graph graph, R5R9Dijkstra.Rule rule) Represents a graph for Dijkstra's algorithm.Constructs a new FCI search for the given independence test and background knowledge.MsepVertexCutFinder(Graph graph) Constructs an instance of the MsepVertexCutFinder class with the specified graph.PossibleDsepFci(Graph graph, IndependenceTest test) Creates a new SepSet and assumes that none of the variables have yet been checked.PreserveMarkov(Graph graph, IndependenceTest test, boolean preserveMarkov) Constructs an PreserveMarkov class for a given Markov graph.SepsetsGreedy(Graph graph, IndependenceTest independenceTest, int depth) Constructor for Sepsets.SepsetsGreedyMb(Graph graph, Graph cpdag, IndependenceTest independenceTest, int depth) Constructor for Sepsets.SepsetsMaxP(Graph graph, IndependenceTest independenceTest, int depth) Constructs a SepsetsMaxP object with the given graph, independence test, and depth.SepsetsMinP(Graph graph, IndependenceTest independenceTest, int depth) Initializes a new instance of the SepsetsMinP class.SepsetsPossibleDsep(Graph graph, IndependenceTest test, Knowledge knowledge, int depth, int maxDiscriminatingPathLength) Constructor for SepsetsPossibleDsep.TsDagToPag(Graph dag) Constructs a new FCI search for the given independence test and background knowledge.Constructs a new result. -
Uses of Graph in edu.cmu.tetrad.search.work_in_progress
Methods in edu.cmu.tetrad.search.work_in_progress that return GraphModifier and TypeMethodDescriptionOutputs a new PAG, a copy of the input excepting the applied changes of this object.@NotNull GraphGraspTol.getGraph(boolean cpDag) getGraph.HbsmsBeam.getGraph()Getter for the fieldgraph.HbsmsGes.getGraph()Getter for the fieldgraph.HbsmsGes.GraphWithPValue.getGraph()Getter for the fieldgraph.SampleVcpc.getGraph()The graph that's constructed during the search.SampleVcpcFast.getGraph()The graph that's constructed during the search.VcPc.getGraph()The graph that's constructed during the search.VcPcAlt.getGraph()The graph that's constructed during the search.VcPcFast.getGraph()The graph that's constructed during the search.MagCgBicScore.getMag()Returns the wrapped MAG.MagDgBicScore.getMag()Returns the wrapped MAG.MagSemBicScore.getMag()Returns the wrapped MAG.DMSearch.LatentStructure.latentStructToEdgeListGraph(DMSearch.LatentStructure structure) latentStructToEdgeListGraph.Projects the order to a high-scoring ancestral graph consistent with it.Projects the order, warm-started from an earlier projection's graph: the warm start's order-consistent edges (directed edges whose tail precedes their head in the new order, and all bidirected edges) seed the state, the forward phases are skipped, and only the polish and plateau-escape phases run.HbsmsBeam.removeZeroEdges(Graph bestGraph) removeZeroEdges.BpcTetradPurifyWashdown.search()Runs the search and returns a graph.DMSearch.search()search.Hbsms.search()search.HbsmsBeam.search()search.HbsmsGes.search()search.InverseCorrelation.search()search.Kpc.search()Deprecated.Runs PC starting with a complete graph over all nodes of the given conditional independence test, using the given independence test and knowledge and returns the resultant graph.Deprecated.Runs PC starting with a commplete graph over the given list of nodes, using the given independence test and knowledge and returns the resultant graph.LvBossExperimental.search()Runs the search and returns the best graph found.Mmhc.search()Runs PC starting with a fully connected graph over all of the variables in the domain of the independence test.SampleVcpc.search()search.SampleVcpcFast.search()search.VcFas.search()Discovers all adjacencies in data.VcPc.search()search.VcPcAlt.search()search.VcPcFast.search()search.Washdown.search()Runs the Washdown algorithm and return a graph.Methods in edu.cmu.tetrad.search.work_in_progress that return types with arguments of type GraphModifier and TypeMethodDescriptionDci.search()Begins the DCI search procedure, described at each stepMethods in edu.cmu.tetrad.search.work_in_progress with parameters of type GraphModifier and TypeMethodDescriptionDMSearch.applyDmSearch(Graph pattern, Set<String> inputString, double penalty) applyDmSearch.Outputs a new PAG, a copy of the input excepting the applied changes of this object.static voidSampleVcpc.futureNodeVisit(Graph graph, Node b, LinkedList<Node> path, Set<Node> futureNodes) futureNodeVisit.static voidSampleVcpcFast.futureNodeVisit(Graph graph, Node b, LinkedList<Node> path, Set<Node> futureNodes) futureNodeVisit.static voidVcPc.futureNodeVisit(Graph graph, Node b, LinkedList<Node> path, Set<Node> futureNodes) futureNodeVisit.static voidVcPcAlt.futureNodeVisit(Graph graph, Node b, LinkedList<Node> path, Set<Node> futureNodes) futureNodeVisit.static voidVcPcFast.futureNodeVisit(Graph graph, Node b, LinkedList<Node> path, Set<Node> futureNodes) futureNodeVisit.VcPc.getPopulationTripleType(Node x, Node y, Node z, IndependenceTest test, int depth, Graph graph, boolean verbose) getPopulationTripleType.VcPcFast.getPopulationTripleType(Node x, Node y, Node z, IndependenceTest test, int depth, Graph graph, boolean verbose) getPopulationTripleType.Projects the order, warm-started from an earlier projection's graph: the warm start's order-consistent edges (directed edges whose tail precedes their head in the new order, and all bidirected edges) seed the state, the forward phases are skipped, and only the polish and plateau-escape phases run.HbsmsBeam.removeZeroEdges(Graph bestGraph) removeZeroEdges.scoreDag.HbsmsBeam.scoreGraph(Graph graph) scoreGraph.HbsmsGes.scoreGraph(Graph graph) scoreGraph.voidVcFas.setExternalGraph(Graph externalGraph) Setter for the fieldexternalGraph.voidSetter for the fieldgraph.voidSetter for the fieldgraph.voidSetter for the fieldgraph.voidSetter for the fieldgraph.voidSetter for the fieldgraph.voidSets the MAG to wrap.voidSets the MAG to wrap.voidSets the MAG to wrap.Constructors in edu.cmu.tetrad.search.work_in_progress with parameters of type GraphModifierConstructorDescriptionFasDci(Graph graph, IndependenceTest independenceTest) Constructs a new FastAdjacencySearch for DCI.FasDci(Graph graph, IndependenceTest independenceTest, ResolveSepsets.Method method, List<Set<Node>> marginalVars, List<IndependenceTest> independenceTests, SepsetMapDci knownIndependencies, SepsetMapDci knownAssociations) Constructs a new FastAdjacencySearch for DCI with independence test pooling to resolve inconsistencies.GraphWithPValue(Graph graph, double pValue) Constructor for GraphWithPValue.HbsmsBeam(Graph graph, CovarianceMatrix cov, Knowledge knowledge) Constructor for HbsmsBeam.Constructor for HbsmsBeam.Constructor for HbsmsGes. -
Uses of Graph in edu.cmu.tetrad.sem
Fields in edu.cmu.tetrad.sem declared as GraphModifier and TypeFieldDescriptionfinal GraphTrainedDagSimulatorANM.SimResult.trueDagRepresents the true Directed Acyclic Graph (DAG) associated with the simulation results.final GraphTrainedDagSimulatorGNM.SimResult.trueDagGraph representing the true causal structure of the simulation.final GraphTrainedDagSimulatorGNM1.SimResult.trueDagGraph representing the true causal structure of the simulation.final GraphTrainedDagSimulatorGNM2.SimResult.trueDagGraph representing the true causal structure of the simulation.Methods in edu.cmu.tetrad.sem that return GraphModifier and TypeMethodDescriptionNNEstimator.getDag()Returns the DAG used for factorization.LargeScaleSimulation.getGraph()Getter for the fieldgraph.SemUpdater.getManipulatedGraph()getManipulatedGraph.PredictionPruneReport.getPrunedGraph()A copy of the input DAG with the proposed deletions removed.Methods in edu.cmu.tetrad.sem with parameters of type GraphModifier and TypeMethodDescriptionstatic doubleDagScores.bicDiscrete(DataSet data, Graph dag) Computes the Bayesian Information Criterion (BIC) score for a given dataset and directed acyclic graph (DAG) under the assumption of discrete variables.static doubleDagScores.bicMixedConditionalGaussian(DataSet data, Graph dag) Computes the Bayesian Information Criterion (BIC) score for a given dataset and directed acyclic graph (DAG) under the assumption of mixed or conditional Gaussian relationships.cliques.Computes and returns the result of a metric evaluation for a given dataset and directed acyclic graph (DAG).doubleComputes a metric value based on the given dataset and directed acyclic graph (DAG).LargeScaleSimulation.getKnowledge(Graph graph) getKnowledge.ReidentifyVariables.getLatents(Graph graph) getLatents.static voidCyclicStableUtils.initializeInternalEdgesRandom(SemIm im, Graph g, List<Node> scc, double low, double high) Randomize existing internal edges (that already exist in the graph) within [low, high], positive.static doubleDagScores.mmd2ExactRbf(DataSet data, Graph dag) Computes the Maximum Mean Discrepancy (MMD) score using the Radial Basis Function (RBF) kernel between the real dataset and a simulated dataset.ReidentifyVariables.reidentifyVariables1(List<List<Node>> partition, Graph trueGraph) reidentifyVariables1.reidentifyVariables2.static DataSetNNEstimator.restrictToGraph(DataSet data, Graph graph) Restricts a dataset to the columns named by the nodes of a graph, in the dataset's column order, so that a graph over a subset of the dataset's variables can be estimated.RicfEjml.ricf(Graph admg, ICovarianceMatrix covMatrix) Runs RICF with the default tolerance and iteration cap.RicfEjml.ricf(Graph admg, ICovarianceMatrix covMatrix, double tol, int maxIters) Runs Residual Iterative Conditional Fitting for a Gaussian ADMG/MAG.Ricf.ricf2(Graph mag, ICovarianceMatrix covMatrix, double tolerance) Same as above but takes a Graph instead of a SemGraphstatic voidCyclicStableUtils.scaleInternalEdges(SemIm im, Graph g, List<Node> scc, double factor) Scale all internal edges of an SCC by a factor.doubleScores the given DAG using the implemented algorithm.doublescore.static doubleDagScores.semBicLinearGaussian(DataSet data, Graph dag) Computes the structural equation model Bayesian Information Criterion (SEM-BIC) score for a given dataset and directed acyclic graph (DAG) under the assumption of linear Gaussian relationships.static doubleDagScores.semBicLinearGaussian(DataSet data, Graph dag, double penaltyDiscount) Computes the structural equation model Bayesian Information Criterion (SEM-BIC) score for a given dataset and directed acyclic graph (DAG) under the assumption of linear Gaussian relationships, with a specified penalty discount factor.static @NotNull SemIm.ResultSemIm.simulatePossibleShrinkage(Parameters params, Graph g) Simulates possible shrinkage scenarios for a given graph and parameters.static SemIm.CyclicSimResultCyclicStableUtils.simulateStableFixedRadius(Graph g, int n, double s, double coefLow, double coefHigh, Parameters params) Simulate from an arbitrary graph with SCC-wise fixed spectral radius s.static SemIm.CyclicSimResultCyclicStableUtils.simulateStableProductCapped(Graph g, int n, double maxProd, double coefLow, double coefHigh, long seed, Parameters params) Simulate from an arbitrary graph with SCC-wise radius capped by sqrt(maxProd).static doubleCyclicStableUtils.spectralRadiusAbs(SemIm im, Graph g, List<Node> scc) Computes the spectral radius of the absolute value of the coefficient matrix of the given strongly connected component (SCC) in a graph.static voidCyclicStableUtils.stabilizeAllSccsFixedRadius(SemIm im, Graph g, double s, double coefLow, double coefHigh) Stabilize an existing SemIm in-place: enforce per-SCC spectral radius target s.static voidCyclicStableUtils.stabilizeAllSccsFixedRadiusScaleOnly(SemIm im, Graph g, double s) Stabilizes all strongly connected components (SCCs) of a given graph by scaling internal edges such that the spectral radius of each SCC does not exceed the given target value s.CyclicStableUtils.stronglyConnectedComponents(Graph g) Kosaraju's algorithm for strongly connected components.Constructors in edu.cmu.tetrad.sem with parameters of type GraphModifierConstructorDescriptionAdditiveNoiseSimulation(Graph graph, int numSamples, Sampler sampler, int[] hiddenDimensions, double inputScale, Function<Double, Double> activationFunction) Constructs a new AdditiveNoiseSimulation instance with the specified parameters.GeneralAdditiveModel(Graph graph, int numSamples, Sampler sampler) Constructs a new generalized additive model simulator.GeneralizedSemPm(Graph graph) Constructs a BayesPm from the given Graph, which must be convertible first into a ProtoSemGraph and then into a SemGraph.GeneralNoiseSimulation(Graph graph, int numSamples, Sampler sampler, int[] hiddenDimensions, double inputScale, Function<Double, Double> activationFunction) Constructs a GeneralNoiseSimulation instance based on the provided parameters.GeneralNoiseSimulation(Graph graph, int numSamples, Sampler sampler, int[] hiddenDimensions, double inputScale, Function<Double, Double> activationFunction, boolean reportSaturation, double saturationAbsActivationThreshold) Constructs a GeneralNoiseSimulation instance based on the provided parameters.LargeScaleSimulation(Graph graph) Constructor for LargeScaleSimulation.LargeScaleSimulation(Graph graph, List<Node> nodes, int[] tierIndices) Constructor for LargeScaleSimulation.NNEstimator(DataSet observedData, Graph dag) Creates an estimator with default parameters.NNEstimator(DataSet observedData, Graph dag, NNEstimatorParams params) Creates an estimator with explicit parameters.NonlinearFunctionOfLinear(Graph graph, int numSamples, org.apache.commons.math3.distribution.RealDistribution noiseDistribution, double rescaleMin, double rescaleMax, double coefLow, double coefHigh, boolean coefSymmetric, int hiddenDimension, double inputScale) Constructs a NonlinearFunctionOfLinear instance, which generates synthetic data based on a directed acyclic graph (DAG) using post-nonlinear causal relationships and associated modeling parameters.PostnonlinearSem(Graph graph, int numSamples, org.apache.commons.math3.distribution.RealDistribution noiseDistribution, int hiddenDimension, double inputScale) Constructs a PostnonlinearCausalModel object.Constructs a BayesPm from the given Graph, which must be convertible first into a ProtoSemGraph and then into a SemGraph.TrainedDagSimulatorANM(DataSet data, Graph dag, TrainedDagSimulatorANM.Params params) Constructs a TrainedDagSimulatorANMTrainedDagSimulatorGNM(DataSet data, Graph dag, TrainedDagSimulatorGNM.Params params) Constructs a new instance of the TrainedDagSimulatorGNM class.TrainedDagSimulatorGNM1(DataSet data, Graph dag, TrainedDagSimulatorGNM1.Params params) Constructs a new instance of the TrainedDagSimulatorGNM class.TrainedDagSimulatorGNM2(DataSet data, Graph dag, TrainedDagSimulatorGNM2.Params params) Constructs a new instance of the TrainedDagSimulatorGNM class. -
Uses of Graph in edu.cmu.tetrad.simulation
Methods in edu.cmu.tetrad.simulation that return GraphModifier and TypeMethodDescriptionstatic GraphevalEdges.static GraphHsimUtils.mkRandSEMDAG(int numVars, int numEdges) mkRandSEMDAG.Methods in edu.cmu.tetrad.simulation with parameters of type GraphModifier and TypeMethodDescriptiondistances.static double[]errorEval.static GraphevalEdges.HsimUtils.getAllParents(Graph inputgraph, Set<Node> inputnodes) getAllParents. -
Uses of Graph in edu.cmu.tetrad.study.performance
Methods in edu.cmu.tetrad.study.performance that return GraphModifier and TypeMethodDescriptionComparisonResult.getCorrectResult()Getter for the fieldcorrectResult.ComparisonResult.getResultGraph()Getter for the fieldresultGraph.ComparisonResult.getTrueDag()Getter for the fieldtrueDag.Methods in edu.cmu.tetrad.study.performance with parameters of type GraphModifier and TypeMethodDescriptionstatic StringPerformanceTests.endpointMisclassification(List<Node> _nodes, Graph estGraph, Graph refGraph) endpointMisclassification.static KnowledgeComparison2.getKnowledge(Graph graph) getKnowledge.voidComparisonResult.setCorrectResult(Graph correctResult) Setter for the fieldcorrectResult.voidComparisonResult.setResultGraph(Graph graph) Setter for the fieldresultGraph.voidComparisonResult.setTrueDag(Graph trueDag) Setter for the fieldtrueDag. -
Uses of Graph in edu.cmu.tetrad.util
Methods in edu.cmu.tetrad.util that return GraphModifier and TypeMethodDescriptionstatic GraphGraphSampling.createDisplayGraph(Graph graph, ResamplingEdgeEnsemble ensemble) Create a graph for displaying and print out.static GraphGraphSampling.createGraphWithHighProbabilityEdges(List<Graph> graphs) Combine all the edges from the list of graphs onto one graph with the edge type that has the highest frequency probability.static GraphGraphSampling.createGraphWithoutNullEdges(Graph graph) Create a graph from the given graph that contains no null edges.@NotNull GraphRetrieves or computes a Partial Ancestral Graph (PAG) from the given input graph.@NotNull GraphRetrieves or computes a PAG (Partial Ancestral Graph) from the given input graph.static GraphJsonUtils.parseJSONObjectToTetradGraph(String jsonResponse) parseJSONObjectToTetradGraph.static GraphJsonUtils.parseJSONObjectToTetradGraph(org.json.JSONObject jObj) parseJSONObjectToTetradGraph.static GraphGraphSampling.selectMedianEnsembleGraph(List<Graph> graphs) Selects, from among the given member graphs (the actual outputs of the bootstrap searches), the single graph whose edges best agree with the ensemble edge-type frequencies, and returns a copy of it annotated with those frequencies.Methods in edu.cmu.tetrad.util with parameters of type GraphModifier and TypeMethodDescriptionstatic GraphGraphSampling.createDisplayGraph(Graph graph, ResamplingEdgeEnsemble ensemble) Create a graph for displaying and print out.static GraphGraphSampling.createGraphWithoutNullEdges(Graph graph) Create a graph from the given graph that contains no null edges.@NotNull GraphRetrieves or computes a Partial Ancestral Graph (PAG) from the given input graph.@NotNull GraphRetrieves or computes a PAG (Partial Ancestral Graph) from the given input graph.JsonUtils.parseJSONArrayToTetradEdges(Graph graph, org.json.JSONArray jArray) parseJSONArrayToTetradEdges.static EdgeJsonUtils.parseJSONObjectToTetradEdge(Graph graph, org.json.JSONObject jObj) parseJSONObjectToTetradEdge.Method parameters in edu.cmu.tetrad.util with type arguments of type GraphModifier and TypeMethodDescriptionstatic GraphGraphSampling.createGraphWithHighProbabilityEdges(List<Graph> graphs) Combine all the edges from the list of graphs onto one graph with the edge type that has the highest frequency probability.static GraphGraphSampling.selectMedianEnsembleGraph(List<Graph> graphs) Selects, from among the given member graphs (the actual outputs of the bootstrap searches), the single graph whose edges best agree with the ensemble edge-type frequencies, and returns a copy of it annotated with those frequencies. -
Uses of Graph in edu.pitt.csb.stability
Methods in edu.pitt.csb.stability that return Graph -
Uses of Graph in edu.pitt.dbmi.algo.bayesian.constraint.search
Methods in edu.pitt.dbmi.algo.bayesian.constraint.search that return GraphModifier and TypeMethodDescriptionRfciBsc.getGraphRBD()Returns the graph that was learned using the BSC-D method.RfciBsc.getGraphRBI()Returns the graph that was learned using the BSC-I method.PagSamplingRfci.search()Runs the search and returns a graph.RfciBsc.search()Runs the search and returns a graph.
StarFci.getMarkovCpdag(boolean)onStarFciinstead.