Own implementation of graph algorithms and network analysis functions