Skip to content
Permalink
e37ee19ff8
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (20 sloc) 636 Bytes
package edu.uconn.tripoint.export;
public class PathwayCytoscapeEdge extends CytoscapeEdge{
private String _type;
public PathwayCytoscapeEdge(int id, CytoscapeNode n1, CytoscapeNode n2, String type){
super(id, n1, n2);
_type = type;
}
public String toJSON(){
StringBuilder sb = new StringBuilder();
sb.append("{\n");
sb.append("\"data\" : {\n");
sb.append("\"id\" : \""+getId()+"\",\n");
sb.append("\"source\" : \""+getN1().getId()+"\",\n");
sb.append("\"target\" : \""+getN2().getId()+"\",\n");
sb.append("\"type\" : \""+_type+"\"\n");
sb.append("}\n");
sb.append("}\n");
return sb.toString();
}
}