Class R5R9Dijkstra.Graph

java.lang.Object
edu.cmu.tetrad.search.utils.R5R9Dijkstra.Graph
Enclosing class:
R5R9Dijkstra

public static class R5R9Dijkstra.Graph extends Object
Represents a graph for Dijkstra's algorithm. This wraps a Tetrad graph and provides methods to get neighbors and nodes. The nodes are just the nodes in the underlying Tetrad graph, and neighbors are determined dynamically based on the edges in the graph. There are two modes of operation, one for potentially directed graphs and one for nondirected graphs. In the potentially directed mode, the algorithm will only traverse edges that are semidirected, i.e., edges that are all directable in one direction but not the other. This is suitable for R9. In the nondirected mode, the algorithm will traverse nondirected edges only in both directions. This is suitable for R5.