Package edu.cmu.tetrad.search.utils
Class DefaultSetEndpointStrategy
java.lang.Object
edu.cmu.tetrad.search.utils.DefaultSetEndpointStrategy
- All Implemented Interfaces:
SetEndpointStrategy
The DefaultSetEndpointStrategy class implements the SetEndpointStrategy interface and provides a default strategy for
setting the endpoint of an edge in a graph.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of DefaultSetEndpointStrategy. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEndpoint
(Graph graph, Node a, Node b, Endpoint endpoint) Sets the endpoint of a graph given the two nodes and the desired endpoint.
-
Constructor Details
-
DefaultSetEndpointStrategy
public DefaultSetEndpointStrategy()Creates a new instance of DefaultSetEndpointStrategy.
-
-
Method Details
-
setEndpoint
Sets the endpoint of a graph given the two nodes and the desired endpoint.- Specified by:
setEndpoint
in interfaceSetEndpointStrategy
- Parameters:
graph
- the graph in which the endpoint is being seta
- the starting node of the endpointb
- the ending node of the endpointendpoint
- the desired endpoint value
-