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;
			}

			@Override
			public String toString() {
				return to + "->" + from;
			}
		};
	}

}

@@ -344,18 +344,20 @@
 %09return 
-to
+from
  + %22-%3E%22 
@@ -358,20 +358,18 @@
  %22-%3E%22 + 
-from
+to
 ;%0D%0A%09%09%09%7D%0D

fix debug code