Class DefaultSetEndpointStrategy

java.lang.Object
edu.cmu.tetrad.search.utils.DefaultSetEndpointStrategy
All Implemented Interfaces:
SetEndpointStrategy

public class DefaultSetEndpointStrategy extends Object implements SetEndpointStrategy
The DefaultSetEndpointStrategy class implements the SetEndpointStrategy interface and provides a default strategy for setting the endpoint of an edge in a graph.
  • Constructor Details

    • DefaultSetEndpointStrategy

      public DefaultSetEndpointStrategy()
      Creates a new instance of DefaultSetEndpointStrategy.
  • Method Details

    • setEndpoint

      public void setEndpoint(Graph graph, Node a, Node b, Endpoint endpoint)
      Sets the endpoint of a graph given the two nodes and the desired endpoint.
      Specified by:
      setEndpoint in interface SetEndpointStrategy
      Parameters:
      graph - the graph in which the endpoint is being set
      a - the starting node of the endpoint
      b - the ending node of the endpoint
      endpoint - the desired endpoint value