add DynamicGraph sample to repo