implemented map for graph nodes