@Test
public void assignDepth_line() {

	for (int length = 1; length < 4; length++) {
		List<Node> ordered = createLineSequence(length);
		List<Node> shuffled = new ArrayList<>(ordered);
		Collections.shuffle(shuffled,rand);
		SequenceForwardOrder alg = new SequenceForwardOrder((List)shuffled);
		alg.assignDepth();
		for (int j = 0; j < length; j++) {
			SequenceForwardOrder.NodeData d = alg.sequence.get(j);
			int expected = ordered.indexOf(d.node);
			assertEquals(expected,d.depth);
		}
	}
}