Using Shared Variables in Graphs