Feature: GraphML export for pattern.graph

Added a `write` method to `pattern.graph.Graph`. In principle, it supports multiple export formats. However, currently only GraphML export is implemented.