Tools for the study of scale free and small world networks