using local element for graph