Added in functionality for setting matrix entries that have not been preallocated in the graph structure, compiles but awaits testing