Adds the convenience functions suggested in #108. This is just a thin layer on top of existing functions; no changes to the data structures were made (although I think that could be done in the future).
Also, I slipped in some changes to make printing of FGGs a little easier to read. Now it looks like this:
Graph containing:
Node node1 with NodeLabel nl1
Node 4470135968 with NodeLabel nl2
Edge 4470141904 with Nonterminal EdgeLabel el2 connecting to:
Node 4470135968 with NodeLabel nl2
Edge edge1 with Terminal EdgeLabel el1 connecting to:
Node node1 with NodeLabel nl1
Node 4470135968 with NodeLabel nl2
Adds the convenience functions suggested in #108. This is just a thin layer on top of existing functions; no changes to the data structures were made (although I think that could be done in the future).
Original interface:
Convenience functions:
Also, I slipped in some changes to make printing of FGGs a little easier to read. Now it looks like this:
Closes #108.