Added include guards
Revised graph edges and graph generating code
The backbone tree now gets a sign assignment