add structure graph