int[] outEdgeInds = sbmlNetwork.getAdjacentEdgeIndicesArray(reaction.getRootGraphIndex(), false, false, true);
for (int in: inEdgeInds){
CyEdge inEdge = (CyEdge) sbmlNetwork.getEdge(in);
String inEdgeSBO = (String) eAtts.getAttribute(inEdge.getIdentifier(), CySBMLConstants.ATT_SBOTERM);
CyNode n1 = (CyNode) inEdge.getSource();
if (inEdgeSBO == null){
continue;
}
for (int out: outEdgeInds){
// Get the two edges and end nodes; n1 --inEdge-> reaction --outEdge-> n2
CyEdge outEdge = (CyEdge) sbmlNetwork.getEdge(out);
String outEdgeSBO = (String) eAtts.getAttribute(outEdge.getIdentifier(), CySBMLConstants.ATT_SBOTERM);
System.out.println("OUT edge: " + outEdge.getIdentifier());
CyNode n2 = (CyNode) outEdge.getTarget();
if (outEdgeSBO == null){
continue;
}
// Edges to add
if (GeneRegulatoryNetwork.productSBOforGRN.contains(outEdgeSBO) &&