package org.psjava.ds.graph;

public class DirectedEdgeFactory {

	public static <V> DirectedEdge<V> create(final V from, final V to) {
		return new DirectedEdge<V>() {
			@Override
			public V to() {
				return to;
			}
			@Override
			public V from() {
				return from;
			}
		};
	}

}

@@ -224,16 +224,18 @@
 %0D%0A%09%09%09%7D%0D%0A
+%0D%0A
 %09%09%09@Over
@@ -285,16 +285,99 @@
 ;%0D%0A%09%09%09%7D%0D
+%0A%0D%0A%09%09%09@Override%0D%0A%09%09%09public String toString() %7B%0D%0A%09%09%09%09return to + %22-%3E%22 + from;%0D%0A%09%09%09%7D%0D
 %0A%09%09%7D;%0D%0A%09

add toString for debug