// Path: src/main/java/org/ihtsdo/json/model/LightRelationship.java
// public class LightRelationship extends Component {
// 
//     private String type;
//     private String target;
//     private String sourceId;
//     private Integer groupId;
//     private String charType;
//     private String modifier;
// 	public String getType() {
// 		return type;
// 	}
// 	public void setType(String type) {
// 		this.type = type;
// 	}
// 	public String getTarget() {
// 		return target;
// 	}
// 	public void setTarget(String target) {
// 		this.target = target;
// 	}
// 	public String getSourceId() {
// 		return sourceId;
// 	}
// 	public void setSourceId(String sourceId) {
// 		this.sourceId = sourceId;
// 	}
// 	public Integer getGroupId() {
// 		return groupId;
// 	}
// 	public void setGroupId(Integer groupId) {
// 		this.groupId = groupId;
// 	}
// 	public String getCharType() {
// 		return charType;
// 	}
// 	public void setCharType(String charType) {
// 		this.charType = charType;
// 	}
// 	public String getModifier() {
// 		return modifier;
// 	}
// 	public void setModifier(String modifier) {
// 		this.modifier = modifier;
// 	}
// 
// 
// 
// }


import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import org.ihtsdo.json.model.LightRelationship;
package org.ihtsdo.json.utils;



public class TClosure {
	
//	HashMap<Long,HashSet<Long>>parentHier;
	HashMap<Long,HashSet<Long>>childrenHier;
//	private long ISARELATIONSHIPTYPEID=116680003l;
	private String ISA_SCTID="116680003";
	private String ROOT_CONCEPT = "138875005";
	String rf2Rels;
	private HashSet<Long> hControl;
	public TClosure(String rf2Rels) throws FileNotFoundException, IOException{
//		parentHier=new HashMap<Long,HashSet<Long>>();
		childrenHier=new HashMap<Long,HashSet<Long>>();
		this.rf2Rels=rf2Rels;
		loadIsas();
	}
// Path: src/main/java/org/ihtsdo/json/model/LightRelationship.java
// public class LightRelationship extends Component {
// 
//     private String type;
//     private String target;
//     private String sourceId;
//     private Integer groupId;
//     private String charType;
//     private String modifier;
// 	public String getType() {
// 		return type;
// 	}
// 	public void setType(String type) {
// 		this.type = type;
// 	}
// 	public String getTarget() {
// 		return target;
// 	}
// 	public void setTarget(String target) {
// 		this.target = target;
// 	}
// 	public String getSourceId() {
// 		return sourceId;
// 	}
// 	public void setSourceId(String sourceId) {
// 		this.sourceId = sourceId;
// 	}
// 	public Integer getGroupId() {
// 		return groupId;
// 	}
// 	public void setGroupId(Integer groupId) {
// 		this.groupId = groupId;
// 	}
// 	public String getCharType() {
// 		return charType;
// 	}
// 	public void setCharType(String charType) {
// 		this.charType = charType;
// 	}
// 	public String getModifier() {
// 		return modifier;
// 	}
// 	public void setModifier(String modifier) {
// 		this.modifier = modifier;
// 	}
// 
// 
// 
// }


// Path: src/main/java/org/ihtsdo/json/utils/TClosure.java
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import org.ihtsdo.json.model.LightRelationship;

package org.ihtsdo.json.utils;



public class TClosure {
	
//	HashMap<Long,HashSet<Long>>parentHier;
	HashMap<Long,HashSet<Long>>childrenHier;
//	private long ISARELATIONSHIPTYPEID=116680003l;
	private String ISA_SCTID="116680003";
	private String ROOT_CONCEPT = "138875005";
	String rf2Rels;
	private HashSet<Long> hControl;
	public TClosure(String rf2Rels) throws FileNotFoundException, IOException{
//		parentHier=new HashMap<Long,HashSet<Long>>();
		childrenHier=new HashMap<Long,HashSet<Long>>();
		this.rf2Rels=rf2Rels;
		loadIsas();
	}
	public TClosure(Map<String, List<LightRelationship>> relationships,String charType) throws FileNotFoundException, IOException {