Fixed internal id bug with ASs
Renamed name to graph and fixed internal id bug