Creating User Defined Compound Graphs