graph with specified number of nodes can be constructed now