replaced the dummy values with the actual nodes and degrees