added template for graph reader