Modified the readGraph to make parallel executable code