Conectivity Matrix creator