added simplified method of creating Graphs, using mutable vectors instead of maps