A systematic investigation of the gap in various Barabasi–Albert and Erdos–Renyi networks