added functionality for modifying/creating graphs with vertices from txtfile