This adds some structure and utility functions for filtering the graphs for e.g. invisible edges.
Curently, it is limited to explicitly invisible edges, i.e. edges following an edge [style=invis]
statement will not be filtered. Contributions (also for other stuff) welcome!