Networks and Algorithms: An Introductory Approach