Making a derived graph type

Adds derived graph type