AmGraph function

Initializes an AmGraph