@Override
	public Edge[] toArray() {
		Edge[] theEdges = new Edge[this.size()];
		int i = 0, cnt = 0;
		int done = this.size();
		while (cnt < done) {
			if (edges[i] != null) {
				theEdges[cnt++] = edges[i];
			}
			i++;
		}
		return theEdges;
	}
@return array of Edges contained in this EdgeSet
Ghidra/Framework/Generic/src/main/java/ghidra/util/graph/EdgeSet.java