txgraffiti.example_data package

Module contents

txgraffiti.example_data.load_example_graphs()[source]

Load all example graphs from the graph-edgelists resource folder.

Each .txt file is a plain-text edge list (one edge per line). Graphs are returned as graphcalc.SimpleGraph with names taken from the filename (without extension).

Returns:

Mapping from graph name (str) to graphcalc.SimpleGraph.

Return type:

dict