Changed input loader to support directed graphs and read from edgelists.