public class DagUtil
extends java.lang.Object
Class DagUtil contains static, thread-safe methods for
removing elements of an array that have a specified value and
for creating a string representation of a DAG.
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
dagStats(Dag dag)
Return a string description of the specified
DAG object. |
static float[] |
removeValues(float[] array,
float value)
Returns an array obtained by removing all elements in the
specified array that equal the specified value.
|
static int[] |
removeValues(int[] array,
int value)
Returns an array obtained by removing all elements in the
specified array that equal the specified value.
|
public static java.lang.String dagStats(Dag dag)
DAG object. The
exact details of the description are unspecified and subject
to change.dag - a directed acyclic graphDAGjava.lang.NullPointerException - if dag == nullpublic static int[] removeValues(int[] array,
int value)
array - an array of integersvalue - an integer valuejava.lang.NullPointerException - if array == nullpublic static float[] removeValues(float[] array,
float value)
array - an array of float valuesvalue - a float valuejava.lang.IllegalArgumentException - if Float.isNaN(value) == truejava.lang.NullPointerException - if array == null