related.add(edges[i]);
}
edges = m_in.getOutEdgeArray();
for (int i = 0; i < edges.length; i++) {
Edge e = edges[i];
if (!e.equals(this) && !(e.getNodeA().equals(e.getNodeB())))
related.add(edges[i]);
}
edges = m_out.getInEdgeArray();
for (int i = 0; i < edges.length; i++) {
Edge e = edges[i];
switch(compareNodes(e)) {
case Edge.EQUAL_NODE_ORIENTATION:
case Edge.OPPOSITE_NODE_ORIENTATION:
continue; //already added
case Edge.UNEQUAL_NODE_ORIENTATION:
related.add(e);
}
}
edges = m_out.getOutEdgeArray();
for (int i = 0; i < edges.length; i++) {
Edge e = edges[i];
switch(compareNodes(edges[i])) {
case Edge.EQUAL_NODE_ORIENTATION:
case Edge.OPPOSITE_NODE_ORIENTATION:
continue; //already added
case Edge.UNEQUAL_NODE_ORIENTATION:
if (!e.getNodeA().equals(e.getNodeB())) related.add(e);
}
}
return(related.iterator());
}