Added method in Grafi.java