sampling based network analysis