add graph, limE func, some helpful comments