Package for processing graphs and directed graphs (digraphs)