Pajek#

Read graphs in Pajek format.

This implementation handles directed and undirected graphs including those with self loops and parallel edges.

Format#

See http://vlado.fmf.uni-lj.si/pub/networks/pajek/doc/draweps.htm for format information.

read_pajek(path[, encoding])

Read graph in Pajek format from path.

write_pajek(G, path[, encoding])

Write graph in Pajek format to path.

parse_pajek(lines)

Parse Pajek format graph from string or iterable.

generate_pajek(G)

Generate lines in Pajek graph format.