seem to get graph creation working. need to write tests