added multiple-graph-support