public void doPostProcessing(CyNetwork net) { // Cleanup unnecessary references. edges.clear(); node_indices.clear(); edges = null; node_indices = null; allInteractions.clear(); allInteractions = null; } } // InteractionsReader
/** * Fills all values contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(DoubleProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list the list to be filled, can have any size. */ public void values(final IntArrayList list) { list.clear(); forEachKey( new DoubleProcedure() { public boolean apply(double key) { list.add(get(key)); return true; } } ); } }
/** * Fills all values contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list the list to be filled, can have any size. */ public void values(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(get(key)); return true; } } ); } }
/** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } } ); } /**
/** * Fills all values contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(DoubleProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list the list to be filled, can have any size. */ public void values(final IntArrayList list) { list.clear(); forEachKey( new DoubleProcedure() { public boolean apply(double key) { list.add(get(key)); return true; } } ); } }
/** * Fills all values contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list the list to be filled, can have any size. */ public void values(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(get(key)); return true; } } ); } }
/** * Fills all keys contained in the receiver into the specified list. Fills * the list, starting at index 0. After this call returns the specified list * has a new size that equals <tt>this.size()</tt>. Iteration order is * guaranteed to be <i>identical</i> to the order used by method * {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list * the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey(new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } }); }
/** * Fills all keys contained in the receiver into the specified list. Fills * the list, starting at index 0. After this call returns the specified list * has a new size that equals <tt>this.size()</tt>. Iteration order is * guaranteed to be <i>identical</i> to the order used by method * {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list * the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey(new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } }); }
/** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } } ); } /**
/** * Fills all keys contained in the receiver into the specified list. Fills * the list, starting at index 0. After this call returns the specified list * has a new size that equals <tt>this.size()</tt>. Iteration order is * guaranteed to be <i>identical</i> to the order used by method * {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list * the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey(new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } }); }
/** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } } ); } /**
/** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } } ); } /**
/** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } } ); } /**
/** * Fills all keys contained in the receiver into the specified list. * Fills the list, starting at index 0. * After this call returns the specified list has a new size that equals <tt>this.size()</tt>. * Iteration order is guaranteed to be <i>identical</i> to the order used by method {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the keys of the receiver. * * @param list the list to be filled, can have any size. */ public void keys(final IntArrayList list) { list.clear(); forEachKey( new IntProcedure() { public boolean apply(int key) { list.add(key); return true; } } ); } /**
/** * Fills all values contained in the receiver into the specified list. Fills * the list, starting at index 0. After this call returns the specified list * has a new size that equals <tt>this.size()</tt>. Iteration order is * guaranteed to be <i>identical</i> to the order used by method * {@link #forEachKey(DoubleProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list * the list to be filled, can have any size. */ public void values(final IntArrayList list) { list.clear(); forEachKey(new DoubleProcedure() { public boolean apply(double key) { list.add(get(key)); return true; } }); } }
/** * Fills all values contained in the receiver into the specified list. Fills * the list, starting at index 0. After this call returns the specified list * has a new size that equals <tt>this.size()</tt>. Iteration order is * guaranteed to be <i>identical</i> to the order used by method * {@link #forEachKey(IntProcedure)}. * <p> * This method can be used to iterate over the values of the receiver. * * @param list * the list to be filled, can have any size. */ public void values(final IntArrayList list) { list.clear(); forEachKey(new IntProcedure() { public boolean apply(int key) { list.add(get(key)); return true; } }); } }
/** * Sets all cells to the state specified by <tt>value</tt>. * @param value the value to be filled into the cells. * @return <tt>this</tt> (for convenience only). */ public DoubleMatrix2D assign(double value) { // overriden for performance only if (value==0) { indexes.clear(); values.clear(); for (int i=starts.length; --i >= 0; ) starts[i] = 0; } else super.assign(value); return this; } public DoubleMatrix2D assign(final cern.colt.function.DoubleFunction function) {
/** * Sets all cells to the state specified by <tt>value</tt>. * @param value the value to be filled into the cells. * @return <tt>this</tt> (for convenience only). */ public DoubleMatrix2D assign(double value) { // overriden for performance only if (value==0) { indexes.clear(); values.clear(); for (int i=starts.length; --i >= 0; ) starts[i] = 0; } else super.assign(value); return this; } public DoubleMatrix2D assign(final cern.colt.function.DoubleFunction function) {
valueList.clear();