first similarity graph working