add graph for star and line