Add ParseGraphFromYAML and related tests

Fixes #5