Analysis and development of graph theoretic algorithms related with graph connectivity and network flow