Search in sources :

Example 6 with Triple

use of edu.cmu.tetrad.graph.Triple in project tetrad by cmu-phil.

the class JsonUtils method parseJSONArrayToTetradTriple.

public static Triple parseJSONArrayToTetradTriple(JSONObject jObj) {
    Node x = parseJSONObjectToTetradNode(jObj.getJSONObject("x"));
    Node y = parseJSONObjectToTetradNode(jObj.getJSONObject("y"));
    Node z = parseJSONObjectToTetradNode(jObj.getJSONObject("z"));
    return new Triple(x, y, z);
}
Also used : Triple(edu.cmu.tetrad.graph.Triple) GraphNode(edu.cmu.tetrad.graph.GraphNode) Node(edu.cmu.tetrad.graph.Node)

Aggregations

Triple (edu.cmu.tetrad.graph.Triple)6 Node (edu.cmu.tetrad.graph.Node)5 GraphNode (edu.cmu.tetrad.graph.GraphNode)2 Edge (edu.cmu.tetrad.graph.Edge)1 EdgeListGraphSingleConnections (edu.cmu.tetrad.graph.EdgeListGraphSingleConnections)1 Endpoint (edu.cmu.tetrad.graph.Endpoint)1 ChoiceGenerator (edu.cmu.tetrad.util.ChoiceGenerator)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1