Remove igraph dependency; add 'patterns' CLI command