implemented data structure for concept hierarchy,
wrote function type for extraction of hierarchy from graph