Classes UnorientedGraph and OrientedGraph seems to be ok