created a sophisticated network graph class