added feature for named graphs