adding initial code to parse the datafile into a graph